Coro::Handle->close returns "No child processes"

Jonas Wagner jow at open.ch
Thu Nov 18 17:10:11 CET 2010


Hello,

my script uses Coro::Handle with pipes to other processes. When I have 
multiple child processes running, a call to close() on the handle often 
fails:

$c->close or die "Cannot close pipe $id: \$! is $!, \$? is $?";

produces

Cannot close pipe 1: $! is No child processes, $? is -1

Please see the attached example code. Can somebody explain me why this 
happens?

Thanks a lot!
Jonas
-- 
jonas wagner
junior engineer

open systems ag
raeffelstrasse 29
ch-8045 zurich
t: +41 44 455 74 00
f: +41 44 455 74 01
jow at open.ch

http://www.open.ch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coro_handles.pl
Type: application/x-perl
Size: 637 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/perl/attachments/20101118/daaa8641/attachment.bin>


More information about the perl mailing list