Don't trust signal() for doing the right thing
Don't trust signal() for doing the right thing

Because signal(SIGINT, SIG_IGN) does not ignore Ctrl+Break it is
better to use SetConsoleCtrlHandler directly so we can ignore both
Ctrl+C and Ctrl+Break until our child exits (thus allowing children
to implement their handlers for Ctrl+Break that do more than just
exit).

snaury/script-runner