virFork: placate static analyzers: ignore pthread_sigmask return value

* src/util/util.c: Include "ignore-value.h".
(virFork): We really do want to ignore pthread_sigmask failure.
This commit is contained in:
Jim Meyering 2010-02-19 18:40:14 +01:00
parent 1edc59e71b
commit 0e69905d9f

View File

@ -69,6 +69,7 @@
#include "virterror_internal.h" #include "virterror_internal.h"
#include "logging.h" #include "logging.h"
#include "event.h" #include "event.h"
#include "ignore-value.h"
#include "buf.h" #include "buf.h"
#include "util.h" #include "util.h"
#include "memory.h" #include "memory.h"
@ -344,7 +345,7 @@ int virFork(pid_t *pid) {
if (*pid < 0) { if (*pid < 0) {
/* attempt to restore signal mask, but ignore failure, to /* attempt to restore signal mask, but ignore failure, to
avoid obscuring the fork failure */ avoid obscuring the fork failure */
pthread_sigmask(SIG_SETMASK, &oldmask, NULL); ignore_value (pthread_sigmask(SIG_SETMASK, &oldmask, NULL));
virReportSystemError(saved_errno, virReportSystemError(saved_errno,
"%s", _("cannot fork child process")); "%s", _("cannot fork child process"));
goto cleanup; goto cleanup;