Windows: handle SIGBREAK.
authorBruce Cran <bruce@cran.org.uk>
Wed, 10 Oct 2012 15:34:13 +0000 (16:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Oct 2012 15:47:00 +0000 (09:47 -0600)
commit2f694507513e44e59139f57f28e08c5d0772880e
treefccc0d122e4fea7dffbd8fbc24efa6eed3dcb354
parenteedd9d0fe637517fd655c4cacdd335ce4959abf2
Windows: handle SIGBREAK.

The only way to send a POSIX-style signal from another application on Windows
is to use GenerateConsoleCtrlEvent with either CTRL_C_EVENT or
CTRL_BREAK_EVENT. CTRL_BREAK_EVENT is the only one which gets through to
applications, so add a signal handler for it to allow fio to quit cleanly.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
client.c