Skip to content
Snippets Groups Projects
Commit fdfc417f authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

die if it can notify

parent 8decac16
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,9 @@ int main(int argc, char const *const *argv)
log_dieusys(LOG_EXIT_SYS, "transfer pipes") ;
}
if (notif) write(1, "\n", 1) ;
if (notif)
if (write(1, "\n", 1) < 0)
log_dieusys(LOG_EXIT_SYS, "notify failed") ;
return 0 ;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment