… | |
… | |
1570 | C<SIGCHLD> after initialising the default loop, and making sure the |
1570 | C<SIGCHLD> after initialising the default loop, and making sure the |
1571 | default loop never gets destroyed. You are encouraged, however, to use an |
1571 | default loop never gets destroyed. You are encouraged, however, to use an |
1572 | event-based approach to child reaping and thus use libev's support for |
1572 | event-based approach to child reaping and thus use libev's support for |
1573 | that, so other libev users can use C<ev_child> watchers freely. |
1573 | that, so other libev users can use C<ev_child> watchers freely. |
1574 | |
1574 | |
|
|
1575 | =head3 Stopping the Child Watcher |
|
|
1576 | |
|
|
1577 | Currently, the child watcher never gets stopped, even when the |
|
|
1578 | child terminates, so normally one needs to stop the watcher in the |
|
|
1579 | callback. Future versions of libev might stop the watcher automatically |
|
|
1580 | when a child exit is detected. |
|
|
1581 | |
1575 | =head3 Watcher-Specific Functions and Data Members |
1582 | =head3 Watcher-Specific Functions and Data Members |
1576 | |
1583 | |
1577 | =over 4 |
1584 | =over 4 |
1578 | |
1585 | |
1579 | =item ev_child_init (ev_child *, callback, int pid, int trace) |
1586 | =item ev_child_init (ev_child *, callback, int pid, int trace) |