check return value of write()

This commit is contained in:
stefani 2015-05-07 07:33:06 +02:00
parent e1d6908ece
commit 8f30a9d2c9

View File

@ -572,7 +572,8 @@ static void signal_exit(int sig)
signal(SIGINT, SIG_IGN); signal(SIGINT, SIG_IGN);
signal(SIGTERM, SIG_IGN); signal(SIGTERM, SIG_IGN);
write(pipefd[1], &signum, 1); if (write(pipefd[1], &signum, 1) == -1)
;
} }
static int scan_process(struct process *process) static int scan_process(struct process *process)