… | |
… | |
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) |
… | |
… | |
2664 | L<http://rev.rubyforge.org/>. |
2671 | L<http://rev.rubyforge.org/>. |
2665 | |
2672 | |
2666 | =item D |
2673 | =item D |
2667 | |
2674 | |
2668 | Leandro Lucarella has written a D language binding (F<ev.d>) for libev, to |
2675 | Leandro Lucarella has written a D language binding (F<ev.d>) for libev, to |
2669 | be found at L<http://git.llucax.com.ar/?p=software/ev.d.git;a=summary>. |
2676 | be found at L<http://proj.llucax.com.ar/wiki/evd>. |
2670 | |
2677 | |
2671 | =back |
2678 | =back |
2672 | |
2679 | |
2673 | |
2680 | |
2674 | =head1 MACRO MAGIC |
2681 | =head1 MACRO MAGIC |