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

Marc Lehmann schmorp at schmorp.de
Thu Nov 18 23:16:24 CET 2010


On Thu, Nov 18, 2010 at 05:10:11PM +0100, Jonas Wagner <jow at open.ch> wrote:
> Cannot close pipe 1: $! is No child processes, $? is -1
> 
> Please see the attached example code. Can somebody explain me why
> this happens?

1. you ignore SIGCHLD
2. you use redhat (most of the redhat kernels have broken waitpid handling)
3. something else, exotic, such as running another thread calling waitpid.

on gnu/linux, you can use strace to see what happens when you call close,
perlfunc also explains what close does (which is what coro calls to close).

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the perl mailing list