commit | 2f694507513e44e59139f57f28e08c5d0772880e | [log] [tgz] |
---|---|---|
author | Bruce Cran <bruce@cran.org.uk> | Wed Oct 10 16:34:13 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Oct 10 09:47:00 2012 -0600 |
tree | fccc0d122e4fea7dffbd8fbc24efa6eed3dcb354 | |
parent | eedd9d0fe637517fd655c4cacdd335ce4959abf2 [diff] |
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>