Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by Anonymous Monk
on Sep 01, 2019 at 23:23 UTC ( #11105396=note: print w/replies, xml ) Need Help??


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 :/

  • Comment on Re^3: killing pp exe on windows leaves child running? ( patch PAR-Packer-1.049\myldr\boot.c )
  • Select or Download Code

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

    Simply copy/pasting do_spawnvp_handle doesnt compile :/

    Yup, I dont know enough C to make this part happen

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11105396]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2020-06-05 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (35 votes). Check out past polls.

    Notices?