summaryrefslogtreecommitdiff
path: root/src/initctl
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-11 18:24:28 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-11 18:24:28 +0200
commitfd006cce3861ce8321149dfd9210d65639e5e1dc (patch)
tree312b96e39395aaf9a110813b57556beabebc7dcc /src/initctl
parenta2715692e22647428cceba3d4c300a85ddd4fadf (diff)
initctl: don't eat up error code
Diffstat (limited to 'src/initctl')
-rw-r--r--src/initctl/initctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/initctl/initctl.c b/src/initctl/initctl.c
index f3f6f73040..0954e58afd 100644
--- a/src/initctl/initctl.c
+++ b/src/initctl/initctl.c
@@ -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;