[bitcoin/bitcoin] Use a semaphore to trigger shutdown procedures (#13186)

You can use a condition variable and have a loop with short-timeout waits on it. The signal handlers can’t do anything but set variables, and will need a wait loop, but everything else can use condition variable waking.

This post was last modified on May 7, 2018, 10:11 pm