summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bus/main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/bus/main.c b/bus/main.c
index ca0be3ce..970c1def 100644
--- a/bus/main.c
+++ b/bus/main.c
@@ -91,7 +91,10 @@ signal_handler (int sig)
static const char message[] =
"Unable to write to reload pipe - buffer full?\n";
- write (STDERR_FILENO, message, strlen (message));
+ if (write (STDERR_FILENO, message, strlen (message)) != strlen (message))
+ {
+ /* ignore failure to write out a warning */
+ }
}
}
break;
@@ -113,7 +116,10 @@ signal_handler (int sig)
"Unable to write termination signal to pipe - buffer full?\n"
"Will exit instead.\n";
- write (STDERR_FILENO, message, strlen (message));
+ if (write (STDERR_FILENO, message, strlen (message)) != strlen (message))
+ {
+ /* ignore failure to write out a warning */
+ }
_exit (1);
}
}