chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shutdown: drop -f/-F switches again, simply because we don't want to condone non...
[elogind.git]
/
src
/
initctl.c
diff --git
a/src/initctl.c
b/src/initctl.c
index 74eccac557c769ff0f3577033a75b02e5d8b94bc..7b478a75d577fc7d308308baeca2e903b2e1a59b 100644
(file)
--- a/
src/initctl.c
+++ b/
src/initctl.c
@@
-1,4
+1,4
@@
-/*-*- Mode: C; c-basic-offset: 8 -*-*/
+/*-*- Mode: C; c-basic-offset: 8
; indent-tabs-mode: nil
-*-*/
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-119,7
+119,7
@@
static void change_runlevel(Server *s, int runlevel) {
DBUS_TYPE_STRING, &target,
DBUS_TYPE_STRING, &replace,
DBUS_TYPE_INVALID)) {
DBUS_TYPE_STRING, &target,
DBUS_TYPE_STRING, &replace,
DBUS_TYPE_INVALID)) {
- log_error("Could not attach target and flag information to
signal
message.");
+ log_error("Could not attach target and flag information to message.");
goto finish;
}
goto finish;
}
@@
-349,6
+349,7
@@
int main(int argc, char *argv[]) {
log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
log_parse_environment();
log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
log_parse_environment();
+ log_open();
if ((n = sd_listen_fds(true)) < 0) {
log_error("Failed to read listening file descriptors from environment: %s", strerror(-r));
if ((n = sd_listen_fds(true)) < 0) {
log_error("Failed to read listening file descriptors from environment: %s", strerror(-r));
@@
-387,7
+388,7
@@
int main(int argc, char *argv[]) {
if (k <= 0)
break;
if (k <= 0)
break;
- if (
(k = process_event(&server, &event)
) < 0)
+ if (
process_event(&server, &event
) < 0)
goto fail;
}
goto fail;
}