chiark / gitweb /
initctl: don't eat up error code
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Aug 2014 16:24:28 +0000 (18:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Aug 2014 16:24:28 +0000 (18:24 +0200)
src/initctl/initctl.c

index f3f6f73..0954e58 100644 (file)
@@ -218,7 +218,7 @@ static int fifo_process(Fifo *f) {
                         return 0;
 
                 log_warning("Failed to read from fifo: %m");
-                return -1;
+                return -errno;
         }
 
         f->bytes_read += l;