… | |
… | |
716 | |
716 | |
717 | $pid = $w->rpid |
717 | $pid = $w->rpid |
718 | Return the pid of the awaited child (useful when you have installed |
718 | Return the pid of the awaited child (useful when you have installed |
719 | a watcher for all pids). |
719 | a watcher for all pids). |
720 | |
720 | |
|
|
721 | EV::Child::reinit [EXPERIMENTAL] |
|
|
722 | Internally, libev installs a signal handler for "SIGCHLD". |
|
|
723 | Unfortunately, a lot of Perl code does soemthing like "local |
|
|
724 | $SIG{CHLD}", which, unfortunately, is broken and will not restore |
|
|
725 | the signal handler. |
|
|
726 | |
|
|
727 | If this has happened, you can call this function to stop/rrestart |
|
|
728 | the internal libev watcher, which will reset the signal handler. |
|
|
729 | |
|
|
730 | Note that this is an experimental function, whose interface might |
|
|
731 | change. |
|
|
732 | |
721 | STAT WATCHERS - did the file attributes just change? |
733 | STAT WATCHERS - did the file attributes just change? |
722 | $w = EV::stat $path, $interval, $callback |
734 | $w = EV::stat $path, $interval, $callback |
723 | $w = EV::stat_ns $path, $interval, $callback |
735 | $w = EV::stat_ns $path, $interval, $callback |
724 | $w = $loop->stat ($path, $interval, $callback) |
736 | $w = $loop->stat ($path, $interval, $callback) |
725 | $w = $loop->stat_ns ($path, $interval, $callback) |
737 | $w = $loop->stat_ns ($path, $interval, $callback) |