Drone processes should not adopt SIGCHLD handler from parent (Perl)
Bug #1195018 reported by
Bill Erickson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenSRF |
New
|
Undecided
|
Unassigned |
Bug Description
Code in working => user/berick/
From the commit:
Remove the special SIGCHLD handler applied to the parent/listener process from spawned child processes (drones) by setting child handler to DEFAULT. Otherwise, if an OpenSRF drone process spawns a sub-process, the drone will execute the SIGCHLD handler meant for the Listener when the sub-process dies, wherein hijinks ensue.
Basically, $SIG{CHLD} = 'DEFAULT';
To post a comment you must log in.