ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.172 by root, Wed Aug 6 07:01:25 2008 UTC vs.
Revision 1.174 by root, Mon Aug 18 23:23:45 2008 UTC

1134C<EVBACKEND_POLL>. 1134C<EVBACKEND_POLL>.
1135 1135
1136=head3 The special problem of SIGPIPE 1136=head3 The special problem of SIGPIPE
1137 1137
1138While not really specific to libev, it is easy to forget about SIGPIPE: 1138While not really specific to libev, it is easy to forget about SIGPIPE:
1139when reading from a pipe whose other end has been closed, your program 1139when writing to a pipe whose other end has been closed, your program gets
1140gets send a SIGPIPE, which, by default, aborts your program. For most 1140send a SIGPIPE, which, by default, aborts your program. For most programs
1141programs this is sensible behaviour, for daemons, this is usually 1141this is sensible behaviour, for daemons, this is usually undesirable.
1142undesirable.
1143 1142
1144So when you encounter spurious, unexplained daemon exits, make sure you 1143So when you encounter spurious, unexplained daemon exits, make sure you
1145ignore SIGPIPE (and maybe make sure you log the exit status of your daemon 1144ignore SIGPIPE (and maybe make sure you log the exit status of your daemon
1146somewhere, as that would have given you a big clue). 1145somewhere, as that would have given you a big clue).
1147 1146
1569handler, you can override it easily by installing your own handler for 1568handler, you can override it easily by installing your own handler for
1570C<SIGCHLD> after initialising the default loop, and making sure the 1569C<SIGCHLD> after initialising the default loop, and making sure the
1571default loop never gets destroyed. You are encouraged, however, to use an 1570default loop never gets destroyed. You are encouraged, however, to use an
1572event-based approach to child reaping and thus use libev's support for 1571event-based approach to child reaping and thus use libev's support for
1573that, so other libev users can use C<ev_child> watchers freely. 1572that, so other libev users can use C<ev_child> watchers freely.
1573
1574=head3 Stopping the Child Watcher
1575
1576Currently, the child watcher never gets stopped, even when the
1577child terminates, so normally one needs to stop the watcher in the
1578callback. Future versions of libev might stop the watcher automatically
1579when a child exit is detected.
1574 1580
1575=head3 Watcher-Specific Functions and Data Members 1581=head3 Watcher-Specific Functions and Data Members
1576 1582
1577=over 4 1583=over 4
1578 1584

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines