http://www.perlmonks.org?node_id=11105396


in reply to Re^2: killing pp exe on windows leaves child running? ( patch PAR-Packer-1.049\myldr\boot.c )
in thread killing pp exe on windows leaves child running?

Hmm,

I think its not working cause it uses  rc = spawnvp(P_WAIT, my_perl, (char* const*)argv);

which ends up being

DllExport int win32_spawnvp(int mode, const char *cmdname, const char *const *argv)
from perl\win32\win32.c

which ends up using CREATE_NEW_PROCESS_GROUP;

So what needs done is copy/modify win32_spawnvp() or use CreateProcess directly ... to add  JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE

Too much blind experimenting for me at the moment

Simply copy/pasting do_spawnvp_handle doesnt compile :/