summaryrefslogtreecommitdiff
path: root/ev.pod
diff options
context:
space:
mode:
Diffstat (limited to 'ev.pod')
-rw-r--r--ev.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/ev.pod b/ev.pod
index b145894..01070c8 100644
--- a/ev.pod
+++ b/ev.pod
@@ -1627,7 +1627,7 @@ The signal the watcher watches out for.
=head3 Examples
-Example: Try to exit cleanly on SIGINT and SIGTERM.
+Example: Try to exit cleanly on SIGINT.
static void
sigint_cb (struct ev_loop *loop, struct ev_signal *w, int revents)
@@ -1637,7 +1637,7 @@ Example: Try to exit cleanly on SIGINT and SIGTERM.
struct ev_signal signal_watcher;
ev_signal_init (&signal_watcher, sigint_cb, SIGINT);
- ev_signal_start (loop, &sigint_cb);
+ ev_signal_start (loop, &signal_watcher);
=head2 C<ev_child> - watch out for process status changes