summaryrefslogtreecommitdiffstats
path: root/sandbox/linux/suid/init_process.c
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/linux/suid/init_process.c')
-rw-r--r--sandbox/linux/suid/init_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/linux/suid/init_process.c b/sandbox/linux/suid/init_process.c
index 9ce632d..527a42d 100644
--- a/sandbox/linux/suid/init_process.c
+++ b/sandbox/linux/suid/init_process.c
@@ -135,7 +135,7 @@ void SystemInitProcess(int init_fd, int child_pid, int proc_fd, int null_fd) {
sigprocmask(SIG_BLOCK, &mask, NULL);
// Notify other processes that we are done initializing
- write(init_fd, " ", 1);
+ if (write(init_fd, " ", 1)) { }
close(init_fd);
// Handle dying processes that have been re-parented to the "init" process