summaryrefslogtreecommitdiff
path: root/src
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
parenta2715692e22647428cceba3d4c300a85ddd4fadf (diff)
downloadsystemd-fd006cce3861ce8321149dfd9210d65639e5e1dc.tar.gz
systemd-fd006cce3861ce8321149dfd9210d65639e5e1dc.tar.bz2
systemd-fd006cce3861ce8321149dfd9210d65639e5e1dc.zip
initctl: don't eat up error code
Diffstat (limited to 'src')
-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;