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
from perl\win32\win32.cDllExport int win32_spawnvp(int mode, const char *cmdname, const char *const *argv)
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 :/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: killing pp exe on windows leaves child running? ( patch PAR-Packer-1.049\myldr\boot.c )
by Anonymous Monk on Sep 02, 2019 at 02:10 UTC |
In Section
Seekers of Perl Wisdom