AnyEvent->child() with no pid arg

Kevin Ryde user42 at zip.com.au
Wed Apr 27 22:46:04 CEST 2011


(Resend requested by the rt autoreply.)

Is the AnyEvent->child() code supposed to notice a missing "pid"
argument?  I see a croak, but foo.pl below doesn't seem to induce it
(recent debian i386 AnyEvent 5.31 or the cvs).

    perl foo.pl
    =>
    no errors

Is the "+0" making $pid defined() too early?  It's numizes strange
things coming in or something is it?  Perhaps the change below,

    perl foo.pl
    =>
    required option 'pid' is missing at foo.pl line 11

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.pl
Type: text/x-perl
Size: 259 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20110428/39369a6e/attachment.pl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AnyEvent.pm.child-pid-arg.diff
Type: text/x-diff
Size: 426 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20110428/39369a6e/attachment.diff>


More information about the anyevent mailing list