Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: Killing child process

by Thelonius (Priest)
on Oct 13, 2003 at 02:20 UTC ( [id://298746]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Killing child process
in thread Killing child process

Oops, yeah, I forgot you need to set the process group for the process you want to be a group leader. To do this call setpgrp(0,0); after the fork. In your test program, do it right where you have print "CREATED CHILD $$\n"; and don't do it in the grandchildren.

Replies are listed 'Best First'.
Re: Re: Re: Re: Killing child process
by sgifford (Prior) on Oct 13, 2003 at 03:31 UTC

    Cool, that worked! Thanks, I've always wondered how process groups worked.

    Now, I wonder if this answered the OP's question?... :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found