mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
crtools: improve error handling on signal setting
Signed-off-by: Valery Ivanov <ivalery111@gmail.com>
This commit is contained in:
committed by
Andrei Vagin
parent
2967bed64e
commit
6db0f95dbf
@@ -189,7 +189,10 @@ int main(int argc, char *argv[], char *envp[])
|
||||
* 2) Transmitting data to the image streamer
|
||||
* 3) Emitting logs (potentially to a pipe).
|
||||
*/
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) {
|
||||
pr_perror("Failed to set a SIGPIPE signal ignore.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* When a process group becomes an orphan,
|
||||
|
Reference in New Issue
Block a user