From fdfc417f9d622fde6c7775f50ec35ad181cf226e Mon Sep 17 00:00:00 2001 From: obarun <eric@obarun.org> Date: Sun, 21 May 2023 21:06:53 +1100 Subject: [PATCH] die if it can notify --- src/66/66-fdholder-filler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/66/66-fdholder-filler.c b/src/66/66-fdholder-filler.c index 4edb95d0..e5498e8c 100644 --- a/src/66/66-fdholder-filler.c +++ b/src/66/66-fdholder-filler.c @@ -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 ; } -- GitLab