AnyEvent::Util::run_cmd bug

Marc Lehmann schmorp at schmorp.de
Thu Aug 11 20:19:58 CEST 2011


On Thu, Aug 11, 2011 at 06:07:55PM +0100, Andrew Suffield <asuffield at acunu.com> wrote:
> This is wrong when sysread returns undef with $! == EINTR - it will close
> the fd. In my case it was SIGCHLD from another instance of run_cmd arriving
> at an inopportune moment.

It shouldn't normally happen with restartable signals - which OS and event
loop did you use (and was Async::Interrupt installed?).

-- 
                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 anyevent mailing list