Commit f2595fd9 authored by Nicolas Trangez's avatar Nicolas Trangez Committed by Austin Seipp
Browse files

Check return value of sigaction



Issue discovered by Coverity scan, CID 43142.
Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent 6d11a0e1
......@@ -574,7 +574,9 @@ set_sigtstp_action (rtsBool handle)
}
sa.sa_flags = 0;
sigemptyset(&sa.sa_mask);
sigaction(SIGTSTP, &sa, NULL);
if (sigaction(SIGTSTP, &sa, NULL) != 0) {
sysErrorBelch("warning: failed to install SIGTSTP handler");
}
}
/* -----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment