Lines Matching refs:sigfd
473 int outfd, int errfd, int kmsgfd, int sigfd, in monitor_output() argument
501 if (sigfd > nfds) in monitor_output()
502 nfds = sigfd; in monitor_output()
530 while (outfd >= 0 || errfd >= 0 || sigfd >= 0) { in monitor_output()
540 if (sigfd >= 0) in monitor_output()
541 FD_SET(sigfd, &set); in monitor_output()
724 if (sigfd >= 0 && FD_ISSET(sigfd, &set)) { in monitor_output()
727 s = read(sigfd, &siginfo, sizeof(siginfo)); in monitor_output()
780 sigfd = -1; /* we are dying, no signal handling for now */ in monitor_output()
910 int sigfd, sigset_t *sigmask) in execute_next_entry() argument
1001 result = monitor_output(child, outfd, errfd, kmsgfd, sigfd, in execute_next_entry()
1246 static bool should_die_because_signal(int sigfd) in should_die_because_signal() argument
1250 struct pollfd sigpoll = { .fd = sigfd, .events = POLLIN | POLLRDBAND }; in should_die_because_signal()
1260 ret = read(sigfd, &siginfo, sizeof(siginfo)); in should_die_because_signal()
1287 int sigfd; in execute() local
1337 sigfd = signalfd(-1, &sigmask, O_CLOEXEC); in execute()
1340 if (sigfd < 0) { in execute()
1382 if (should_die_because_signal(sigfd)) { in execute()
1393 sigfd, &sigmask); in execute()
1429 if (should_die_because_signal(sigfd)) { in execute()
1433 close(sigfd); in execute()
1450 if (should_die_because_signal(sigfd)) in execute()
1453 close(sigfd); in execute()