in reply to Re: double fork trick vs sig chld wait
in thread double fork trick vs sig chld wait
A little broader context: This script dispatches jobs into a grid platform. It executes the stub binaries, which execute their grid equivalents and wait until they exit, then returning to my script (where I pick up return codes, parse and process schlock from stdout, etc.)
I actually tried $SIG{CHLD} = 'IGNORE'; first. The net result was that the stub binaries wouldn't submit the grid jobs. I threw up my hands at that. I just don't have grid-fu and the people who were supposed to had no idea why that would occur. (But it was exhaustively demonstrated.)
So I went back to trying to decide between double-fork and setting $SIG{CHLD} to a simple sub that just "wait"s.
(Yes, been back and forth through perlipc before posting here. ;) )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: double fork trick vs sig chld wait
by tod222 (Pilgrim) on Nov 19, 2010 at 20:03 UTC | |
by Voronich (Hermit) on Nov 19, 2010 at 20:18 UTC |