summaryrefslogtreecommitdiff
path: root/src/daemontools-extras/ucspilogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemontools-extras/ucspilogd.c')
-rw-r--r--src/daemontools-extras/ucspilogd.c6
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 ;