about summary refs log tree commit diff
path: root/shared/systemd/src/basic/io-util.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2021-01-11 17:41:24 +0100
committerSebastien Bacher <seb128@ubuntu.com>2021-01-11 17:41:24 +0100
commita82e048a943092315a32d745c99e0f5635e29134 (patch)
treee2daea99a161768c9b956bfea9117289deaf31be /shared/systemd/src/basic/io-util.c
parentb51f06ff71a2060925bf3c0f04c44bd12480e670 (diff)
parent65f86e8f56267192d42f2b629fc6b0c99fb9cd0c (diff)
Merge branch 'upstream/latest' of https://salsa.debian.org/utopia-team/network-manager into upstream/latest
Diffstat (limited to 'shared/systemd/src/basic/io-util.c')
-rw-r--r--shared/systemd/src/basic/io-util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shared/systemd/src/basic/io-util.c b/shared/systemd/src/basic/io-util.c
index f1df3fac..8b0e354a 100644
--- a/shared/systemd/src/basic/io-util.c
+++ b/shared/systemd/src/basic/io-util.c
@@ -158,10 +158,8 @@ int pipe_eof(int fd) {
         int r;
 
         r = fd_wait_for_event(fd, POLLIN, 0);
-        if (r < 0)
+        if (r <= 0)
                 return r;
-        if (r == 0)
-                return 0;
 
         return !!(r & POLLHUP);
 }