chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
units: add missing units
[elogind.git]
/
src
/
manager.c
diff --git
a/src/manager.c
b/src/manager.c
index d26541d3ea361f6d7447b22271b80e7a46ce9616..9667e299f3f299faa195c4443c98af9eb442a6f4 100644
(file)
--- a/
src/manager.c
+++ b/
src/manager.c
@@
-89,7
+89,7
@@
static int manager_setup_notify(Manager *m) {
else
strncpy(sa.un.sun_path+1, NOTIFY_SOCKET, sizeof(sa.un.sun_path)-1);
else
strncpy(sa.un.sun_path+1, NOTIFY_SOCKET, sizeof(sa.un.sun_path)-1);
- if (bind(m->notify_watch.fd, &sa.sa, sizeof(sa)) < 0) {
+ if (bind(m->notify_watch.fd, &sa.sa, sizeof(sa
_family_t) + 1 + strlen(sa.un.sun_path+1
)) < 0) {
log_error("bind() failed: %m");
return -errno;
}
log_error("bind() failed: %m");
return -errno;
}
@@
-1947,7
+1947,7
@@
static int manager_process_signal_fd(Manager *m) {
static const char * const table[] = {
[0] = SPECIAL_DEFAULT_TARGET,
[1] = SPECIAL_RESCUE_TARGET,
static const char * const table[] = {
[0] = SPECIAL_DEFAULT_TARGET,
[1] = SPECIAL_RESCUE_TARGET,
- [2] = SPECIAL_EMERGENCY_
SERVICE
,
+ [2] = SPECIAL_EMERGENCY_
TARGET
,
[3] = SPECIAL_HALT_TARGET,
[4] = SPECIAL_POWEROFF_TARGET,
[5] = SPECIAL_REBOOT_TARGET
[3] = SPECIAL_HALT_TARGET,
[4] = SPECIAL_POWEROFF_TARGET,
[5] = SPECIAL_REBOOT_TARGET