init: Don't confuse do_exec with other exiting processes.
The waitpid call in do_exec may return early with EINTR when init receives a signal, e.g., a SIGCHLD from an exiting service process. do_exec should check waitpid for an EINTR "error", to ensure that it returns only after waiting on its child process.
Loading
Please register or sign in to comment