int pid; // ro
int rpid; // rw, holds the received pid
int rstatus; // rw, holds the exit status, use the
int pid; // ro
int rpid; // rw, holds the received pid
int rstatus; // rw, holds the exit status, use the
// set the callback function to call on a
// retryable syscall error
// (such as failed select, poll, epoll_wait)
// set the callback function to call on a
// retryable syscall error
// (such as failed select, poll, epoll_wait)
}
void ev_child_init(ev_child* w, void function(ev_loop_t*, ev_child*, int) cb,
}
void ev_child_init(ev_child* w, void function(ev_loop_t*, ev_child*, int) cb,
}
void ev_stat_init(ev_stat* w, void function(ev_loop_t*, ev_stat*, int) cb,
}
void ev_stat_init(ev_stat* w, void function(ev_loop_t*, ev_stat*, int) cb,
wsignal.data = &epipe[1]; // write fd
ev_signal_start(loop, &wsignal);
wsignal.data = &epipe[1]; // write fd
ev_signal_start(loop, &wsignal);
- ev_child_init(&wchild, &cbchild, 0 /* trace any PID */);
+ ev_child_init(&wchild, &cbchild, 0 /* trace any PID */, 0 /* death */);
ev_child_start(loop, &wchild);
ev_stat_init(&wstat, &cbstat, str.toStringz(STAT_FILE), 0 /* auto */);
ev_child_start(loop, &wchild);
ev_stat_init(&wstat, &cbstat, str.toStringz(STAT_FILE), 0 /* auto */);