diff --git a/init/init.cpp b/init/init.cpp index 40e21696f..19f34dabb 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -751,7 +751,7 @@ static void UnblockSignals() { static void InstallSignalFdHandler(Epoll* epoll) { // Applying SA_NOCLDSTOP to a defaulted SIGCHLD handler prevents the signalfd from receiving // SIGCHLD when a child process stops or continues (b/77867680#comment9). - const struct sigaction act { .sa_handler = SIG_DFL, .sa_flags = SA_NOCLDSTOP }; + const struct sigaction act { .sa_flags = SA_NOCLDSTOP, .sa_handler = SIG_DFL }; sigaction(SIGCHLD, &act, nullptr); sigset_t mask;