Searched refs:pidfds (Results 1 – 2 of 2) sorted by relevance
262 This implementation polls process file descriptors (pidfds) to await child267 event loop. The main disadvantage is that pidfds are specific to Linux, and
1315 int *pidfds; in trace_wait_for_processes() local1318 pidfds = malloc(sizeof(int) * instance->nr_process_pids); in trace_wait_for_processes()1319 if (!pidfds) in trace_wait_for_processes()1329 pidfds[nr_fds] = pidfd_open(pid->pid, 0); in trace_wait_for_processes()1332 if (pidfds[nr_fds] < 0 && errno == ESRCH) { in trace_wait_for_processes()1335 } else if (pidfds[nr_fds] < 0) { in trace_wait_for_processes()1345 if (trace_waitpidfd(pidfds[i])) { in trace_wait_for_processes()1353 close(pidfds[i]); in trace_wait_for_processes()1354 free(pidfds); in trace_wait_for_processes()