summaryrefslogtreecommitdiff
path: root/ev.pod
diff options
context:
space:
mode:
authorroot <root>2008-01-25 15:45:08 +0000
committerroot <root>2008-01-25 15:45:08 +0000
commit6104d060a61e32a1a8d4e71d947b340fd13ac2f7 (patch)
tree25847f264eba11a4c9f0bb152f129dc98bed7871 /ev.pod
parent66b451751514fa881505e9465cdd8e9484fef65d (diff)
*** empty log message ***
Diffstat (limited to 'ev.pod')
-rw-r--r--ev.pod8
1 files changed, 5 insertions, 3 deletions
diff --git a/ev.pod b/ev.pod
index 9ef6da2..3e2060e 100644
--- a/ev.pod
+++ b/ev.pod
@@ -1440,16 +1440,18 @@ some child status changes (most typically when a child of yours dies).
=over 4
-=item ev_child_init (ev_child *, callback, int pid)
+=item ev_child_init (ev_child *, callback, int pid, int trace)
-=item ev_child_set (ev_child *, int pid)
+=item ev_child_set (ev_child *, int pid, int trace)
Configures the watcher to wait for status changes of process C<pid> (or
I<any> process if C<pid> is specified as C<0>). The callback can look
at the C<rstatus> member of the C<ev_child> watcher structure to see
the status word (use the macros from C<sys/wait.h> and see your systems
C<waitpid> documentation). The C<rpid> member contains the pid of the
-process causing the status change.
+process causing the status change. C<trace> must be either C<0> (only
+activate the watcher when the process terminates) or C<1> (additionally
+activate the watcher when the process is stopped or continued).
=item int pid [read-only]