Files
bitcoin/src
Wladimir J. van der Laan cd03513dc2 init: Signal-safe instant shutdown
Replace the 200ms polling loop with a faster and more efficient waiting
operation.

This was tried a few times before, but given up every time because
solutions use a condition variable which is not safe for use in signals
as they need to be reentrant.

On UNIX-ish OSes, use a safe way: a pipe. When shutdown is requested
write a dummy byte to the pipe. Waiting for shutdown is a matter of a
blocking read from the pipe.

On Windows, there are no signals so using a condition variable is safe.
2020-12-15 17:21:06 +01:00
..
2020-11-25 14:38:33 +02:00
2020-11-19 15:48:24 +01:00
2020-11-26 09:07:33 +00:00
2020-11-23 21:02:54 +00:00
2020-12-15 17:21:06 +01:00
2020-11-16 15:54:24 -03:00
2020-12-15 17:21:06 +01:00