----- Forwarded message from Robert Urban <[EMAIL PROTECTED]> -----

To: [EMAIL PROTECTED]
Subject: wish-list item for Event.pm
From: Robert Urban <[EMAIL PROTECTED]>
X-Seen: false
X-ID: [EMAIL PROTECTED]


Hello Joshua,

I just noticed that if I install a watcher for SIGCHLD, then perform
a waitpid() in the callback, the status I get from $? is not correct.
(My program generates a coredump, which normally sets that status to
139 (decimal)).

In the Perlvar manpage (under "$?") it says:

      If you have installed a signal handler for "SIGCHLD", the value
      of $? will usually be wrong outside that handler.

which indeed appears to be the case.

It would be nice if Event collected the status in such cases and passed
it to the callback.

cheers,

Rob Urban

Reply via email to