M
Matthieu Imbert
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
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