chiark / gitweb /
initctl: don't eat up error code
[elogind.git] / src / initctl / initctl.c
index f3f6f7304073f44cc9660f35d9d6fef4c9de977d..0954e58afdb1f260809054b2557f274233b0d7e2 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;