Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 5 of 5) sorted by relevance

/libev/
H A Dev++.h707 void set (int pid, int trace = 0) throw () in EV_END_WATCHER()
711 ev_child_set (static_cast<ev_child *>(this), pid, trace); in EV_END_WATCHER()
715 void start (int pid, int trace = 0) throw () in throw()
717 set (pid, trace); in throw()
H A Dev.h362 int pid; /* ro */
697 #define ev_child_set(ev,pid_,trace_) do { (ev)->pid = (pid_); (ev)->flags = !!(trace_); } w…
711 #define ev_child_init(ev,cb,pid,trace) do { ev_init ((ev), (cb)); ev_child_set ((ev),(pid),(t…
H A Dev.c2629 child_reap (EV_P_ int chain, int pid, int status) in child_reap() argument
2636 if ((w->pid == pid || !w->pid) in child_reap()
2640 w->rpid = pid; in child_reap()
2655 int pid, status; in childcb() local
2658 if (0 >= (pid = waitpid (-1, &status, WNOHANG | WUNTRACED | WCONTINUED))) in childcb()
2661 || 0 >= (pid = waitpid (-1, &status, WNOHANG | WUNTRACED))) in childcb()
2668 child_reap (EV_A_ pid, pid, status); in childcb()
2670 …child_reap (EV_A_ 0, pid, status); /* this might trigger a watcher twice, but feed_event catches t… in childcb()
4169 wlist_add (&childs [w->pid & ((EV_PID_HASHSIZE) - 1)], (WL)w); in ev_child_start()
4183 wlist_del (&childs [w->pid & ((EV_PID_HASHSIZE) - 1)], (WL)w); in ev_child_stop()
H A DChanges10 TODO: store pid for each signal
12 TODO: store loop pid_t and compare isndie signal handler,store 1 for same, 2 for differign pid, cle…
H A Dev.pod2559 =item ev_child_init (ev_child *, callback, int pid, int trace)
2561 =item ev_child_set (ev_child *, int pid, int trace)
2563 Configures the watcher to wait for status changes of process C<pid> (or
2564 I<any> process if C<pid> is specified as C<0>). The callback can look
2567 C<waitpid> documentation). The C<rpid> member contains the pid of the
2572 =item int pid [read-only]
2601 pid_t pid = fork ();
2603 if (pid < 0)
2605 else if (pid == 0)
2612 ev_child_init (&cw, child_cb, pid, 0);
[all …]