diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-06-08 09:59:01 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-06-08 09:59:01 +0000 |
commit | ff147a1493759c0662912564c0ecd26f59590322 (patch) | |
tree | 0d738aa9d0b1e5476b4fe18a2e935ce1cae730e5 /src/supervision/s6-supervise.c | |
parent | 2a47de8defea86ae35ffb53e8c30667be940ac4e (diff) | |
download | s6-ff147a1493759c0662912564c0ecd26f59590322.tar.xz |
Prepare for 2.11.1.1; adapt to skalibs-2.12.0.0
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/supervision/s6-supervise.c')
-rw-r--r-- | src/supervision/s6-supervise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c index cc6779a..2060cac 100644 --- a/src/supervision/s6-supervise.c +++ b/src/supervision/s6-supervise.c @@ -82,7 +82,7 @@ static inline void announce (void) static int read_file (char const *file, char *buf, size_t n) { ssize_t r = openreadnclose_nb(file, buf, n) ; - if (r < 0) + if (r == -1) { if (errno != ENOENT) strerr_warnwu2sys("open ", file) ; return 0 ; |