diff options
-rw-r--r-- | src/daemontools-extras/ucspilogd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/daemontools-extras/ucspilogd.c b/src/daemontools-extras/ucspilogd.c index cf1ae37..3e6cf9b 100644 --- a/src/daemontools-extras/ucspilogd.c +++ b/src/daemontools-extras/ucspilogd.c @@ -160,7 +160,11 @@ int main (int argc, char const *const *argv, char const *const *envp) satmp.len = 0 ; { register int r = skagetlnsep(buffer_0f1, &satmp, "\n", 2) ; - if (r < 0) strerr_diefu1sys(111, "read from stdin") ; + if (r < 0) + { + if (errno != EPIPE || !stralloc_0(&satmp)) + strerr_diefu1sys(111, "read from stdin") ; + } if (!r) break ; } if (!satmp.len) continue ; |