summaryrefslogtreecommitdiff
path: root/src/stdout-syslog-bridge.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-10-07 21:06:39 +0200
committerLennart Poettering <lennart@poettering.net>2011-10-07 22:02:05 +0200
commit87d2c1ff6a7375f03476767e6f59454bcc5cd04b (patch)
tree26824a2485942702b3472cc73191c01e78c622d1 /src/stdout-syslog-bridge.c
parent9a36607584bbd1d78775353e022a51794b4e27b1 (diff)
journal: add preliminary incomplete implementation
Diffstat (limited to 'src/stdout-syslog-bridge.c')
-rw-r--r--src/stdout-syslog-bridge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdout-syslog-bridge.c b/src/stdout-syslog-bridge.c
index 9a0408819e..d50df22c88 100644
--- a/src/stdout-syslog-bridge.c
+++ b/src/stdout-syslog-bridge.c
@@ -649,7 +649,8 @@ int main(int argc, char *argv[]) {
umask(0022);
- if ((n = sd_listen_fds(true)) < 0) {
+ n = sd_listen_fds(true);
+ if (n < 0) {
log_error("Failed to read listening file descriptors from environment: %s", strerror(-r));
return EXIT_FAILURE;
}