Lines Matching refs:pidfd
36 s->child.pidfd >= 0 && in EVENT_SOURCE_WATCH_PIDFD()
489 if (epoll_ctl(s->event->epoll_fd, EPOLL_CTL_DEL, s->child.pidfd, NULL) < 0) in source_child_pidfd_unregister()
509 s->child.pidfd, &ev) < 0) in source_child_pidfd_register()
963 if (s->child.pidfd >= 0) { in source_free()
964 … if (pidfd_send_signal(s->child.pidfd, SIGKILL, NULL, 0) < 0) { in source_free()
990 s->child.pidfd = safe_close(s->child.pidfd); in source_free()
1444 s->child.pidfd = pidfd_open(pid, 0); in sd_event_add_child()
1445 if (s->child.pidfd < 0) { in sd_event_add_child()
1452 s->child.pidfd = -1; in sd_event_add_child()
1486 int pidfd, in sd_event_add_child_pidfd() argument
1498 assert_return(pidfd >= 0, -EBADF); in sd_event_add_child_pidfd()
1519 r = pidfd_get_pid(pidfd, &pid); in sd_event_add_child_pidfd()
1531 s->child.pidfd = pidfd; in sd_event_add_child_pidfd()
2724 if (s->child.pidfd < 0) in sd_event_source_get_child_pidfd()
2727 return s->child.pidfd; in sd_event_source_get_child_pidfd()
2742 if (s->child.pidfd >= 0) { in sd_event_source_send_child_signal()
2750 if (pidfd_send_signal(s->child.pidfd, sig, si ? © : NULL, 0) < 0) { in sd_event_source_send_child_signal()
2779 if (s->child.pidfd < 0) in sd_event_source_get_child_pidfd_own()
2789 if (s->child.pidfd < 0) in sd_event_source_set_child_pidfd_own()