AnyEvent::Util::run_cmd bug

Andrew Suffield asuffield at acunu.com
Thu Aug 11 19:07:55 CEST 2011


run_cmd contains this construct a lot:

                  ? sub {
                       sysread $pr, $$ob, 16384, length $$ob
                          and return;
                       undef $w; $cv->end;
                    }

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20110811/7bcad840/attachment.html>


More information about the anyevent mailing list