sigaddset(&sigwait_set, SIGCHLD);
sigaddset(&sigwait_set, SIGINT);
sigaddset(&sigwait_set, SIGTERM);
+ if (am_system_init) sigaddset(&sigwait_set, SIGQUIT);
sigprocmask(SIG_BLOCK, &sigwait_set, NULL);
// Terminal access control signals - we block these so that dinit can't be
sigdelset(&sigwait_set, SIGCHLD);
sigdelset(&sigwait_set, SIGINT);
sigdelset(&sigwait_set, SIGTERM);
+ sigdelset(&sigwait_set, SIGQUIT);
constexpr int bufsz = ((CHAR_BIT * sizeof(pid_t)) / 3 + 2) + 11;
// "LISTEN_PID=" - 11 characters; the expression above gives a conservative estimate