in reply to Re^2: Kill a child nicely
in thread Kill a child nicely

this might not work on Windows

For some light relief, an historical anecdote "explaining" why Windows does not support signals:

Which platform/s does your program need to run on?