in reply to Re: Getting PID of process forked by backticks
in thread Getting PID of process forked by backticks
What happens if the forked process blocks?
From PERL's point of view, backticks block until the process returns. But from the OS point of view processes are running concurrently.
If I know the PID (returned by open), I can kill the process after a certain amount of time has elasped by catching an ALRM signal. The signal will interrupt the control flow and the signal handler can kill the "timed out" process.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting PID of process forked by backticks
by eyepopslikeamosquito (Archbishop) on Jun 08, 2005 at 09:33 UTC | |
by Anonymous Monk on Dec 14, 2012 at 20:38 UTC |