Skip Menu |
 

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

Report information
The Basics
Id: 64914
Status: new
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.
Download (untitled) / with headers
text/plain 455b
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";


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.