From 84f6ffe6af05b9bdd33066254dca57ef4582afe2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 29 Nov 2022 12:52:26 +0000 Subject: Prepare for 1.0.8.1 Signed-off-by: Laurent Bercot --- src/shutdown/s6-linux-init-shutdown.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/shutdown/s6-linux-init-shutdown.c') diff --git a/src/shutdown/s6-linux-init-shutdown.c b/src/shutdown/s6-linux-init-shutdown.c index 011abef..bc30f0c 100644 --- a/src/shutdown/s6-linux-init-shutdown.c +++ b/src/shutdown/s6-linux-init-shutdown.c @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include @@ -181,6 +181,7 @@ static inline void access_control (void) fmt[uint32_fmt(fmt, AC_BUFSIZE - 1)] = 0 ; strerr_dief4x(1, AC_FILE, " is too big: it needs to be ", fmt, " bytes or less") ; } + errno = EPIPE ; if (allread(fd, buf, st.st_size) < st.st_size) strerr_diefu2sys(111, "read ", AC_FILE) ; fd_close(fd) ; -- cgit v1.3.1