Skip to content
Snippets Groups Projects
Commit d7f623b3 authored by Alexander van Amesfoort's avatar Alexander van Amesfoort
Browse files

Task #8691: fix retval warning only printed when compiling with opt (fix prev commit)

parent 2803f10d
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,9 @@ static void sigHandler(int sig_nr) ...@@ -38,7 +38,9 @@ static void sigHandler(int sig_nr)
// printf not safe in signal handler... // printf not safe in signal handler...
const char msg[] = "ERROR: post"; const char msg[] = "ERROR: post";
size_t msgLen = 11; size_t msgLen = 11;
::write(STDERR_FILENO, msg, msgLen); if (::write(STDERR_FILENO, msg, msgLen) != 0) {
sigint_seen = 2;
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment