File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,9 @@ void verbose(const char *format, ...)
233
233
void verbose_from_signalhandler (const char * msg)
234
234
{
235
235
if (!be_quiet && be_verbose) {
236
- write (STDERR_FILENO, msg, strlen (msg));
236
+ if (write (STDERR_FILENO, msg, strlen (msg) != 0 )) {
237
+ // We can't alert any further;
238
+ }
237
239
}
238
240
}
239
241
@@ -242,7 +244,9 @@ void warning_from_signalhandler(const char* msg)
242
244
if (!be_quiet) {
243
245
// Do not include timing here, as it wouldn't be safe from a signalhandler.
244
246
// TODO: Consider rewriting using clock_gettime in the future.
245
- write (STDERR_FILENO, msg, strlen (msg));
247
+ if (write (STDERR_FILENO, msg, strlen (msg)) != 0 ) {
248
+ // We can't alert any further;
249
+ }
246
250
}
247
251
}
248
252
You can’t perform that action at this time.
0 commit comments