diff options
author | root <root> | 2008-01-25 15:45:08 +0000 |
---|---|---|
committer | root <root> | 2008-01-25 15:45:08 +0000 |
commit | 6104d060a61e32a1a8d4e71d947b340fd13ac2f7 (patch) | |
tree | 25847f264eba11a4c9f0bb152f129dc98bed7871 /ev.pod | |
parent | 66b451751514fa881505e9465cdd8e9484fef65d (diff) |
*** empty log message ***
Diffstat (limited to 'ev.pod')
-rw-r--r-- | ev.pod | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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] |