[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Any Perl Gurus Out There?
- Subject: [ale] Any Perl Gurus Out There?
- From: fletch at phydeaux.org (Fletch)
- Date: Thu Feb 24 08:36:38 2005
- In-reply-to: <[email protected]> (Jonathan Glass's message of "Thu, 24 Feb 2005 06:43:16 -0500")
- References: <[email protected]>
>>>>> "Jonathan" == Jonathan Glass <jonathan.glass at oit.gatech.edu> writes:
Jonathan> Anyone know the proper way to handle the death of all
Jonathan> these child processes? If I run a 'ps -aef' on the box
Jonathan> while the script is running, I see dozens of '<defunct>'
Jonathan> processes.
If you're doing forks you need to make sure you've got a SIGCHLD
handler setup to wait for them all. The canonical example's in
perldoc perlipc; just search for "sub REAPER". Otherwise those defunc
processes will hang around until your process exits and they get
reparented to init (which will then reap them).
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org| Vincent, you should cease askin' \ o.O'
| scary questions." -- Jules =(___)=
| U