Skip Menu |

This queue is for tickets about the IPC-Run CPAN distribution.

Report information
The Basics
Id: 64914
Status: resolved
Priority: 0/
Queue: IPC-Run

People
Owner: Nobody in particular
Requestors: zqh87660201 [...] 163.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.88
Fixed in: 0.88



Subject: when i kill child process, the run function will still be waiting timeout.
I set timeout in run function.After I start my main process, I kill the child process, and I found the main process still waiting for a timeout. Here is the code of Main.pl: #!/usr/bin/perl -w use strict; use IPC::Run qw( timeout run ) ; my @exe = ("./child.pl"); eval{ run(\@exe,timeout(20)); } if ($@){ print $@; } Here is the code of child.pl #!/usr/bin/perl -w use strict; sleep(10);# kill the process at this time print "hello world\n";
Ticket migrated to github as https://github.com/toddr/IPC-Run/issues/43