mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-06 16:56:41 +08:00
check return value of write()
This commit is contained in:
parent
e1d6908ece
commit
8f30a9d2c9
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user