Add wait for handling SIGBREAK
authorBrandon Paupore <brandon.paupore@wdc.com>
Fri, 5 Aug 2022 17:57:27 +0000 (12:57 -0500)
committerBrandon Paupore <brandon.paupore@wdc.com>
Tue, 23 Aug 2022 14:24:26 +0000 (09:24 -0500)
commit0dea1f55e9b821a6bcb12e8faaebb8ac91940ad8
tree97728206f3fcd233b3355439c2a37a5ebfae22f4
parentc08f9533042e909d4b4b12fdb8d14f1bc8e23dff
Add wait for handling SIGBREAK

When closing a command prompt window or terminating it using something
like the taskkill command, each child process (such as a running FIO
workload) is sent a SIGBREAK signal. Once those child processes have
responded to that signal, Windows terminates them if they're still
executing.

This change has the main thread to wait for others to exit when handling
a SIGBREAK signal, such that each job will still have time to wrap-up
and give stats before the entire program terminates.

Signed-off-by: Brandon Paupore <brandon.paupore@wdc.com>
backend.c