in reply to Re^2: Kill a child nicelyin 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?