subprocesses lifecycle
- From: Matthieu Imbert <breafk@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Aug 2008 10:41:30 +0200
hi.
I have a perl script that forks several subprocesses at various times.
I use the open "process_name |" syntax, and then use select to read
multiple process outputs, and have a timeout on all these subprocesses.
If the timeout is reached, I want to immediately exit my script with an
error message.
Currently, when I detect the timeout, I call die "error message". the
message is displayed, but the script does not return until subprocesses
finish (this may take several minutes, depending on what the
subprocesses do).
Is there a way to force the end of all subprocesses when calling die?
best regards,
Matthieu
.
- Follow-Ups:
- Re: subprocesses lifecycle
- From: Eric Pozharski
- Re: subprocesses lifecycle
- From: C.DeRykus
- Re: subprocesses lifecycle
- Prev by Date: Repeating the loop
- Next by Date: Re: Soap:lite with msdl file crash perl.exe v5.6.1
- Previous by thread: Repeating the loop
- Next by thread: Re: subprocesses lifecycle
- Index(es):
Relevant Pages
|