chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
event: hook up sd-event with the service watchdog logic
[elogind.git]
/
src
/
hostname
/
hostnamed.c
diff --git
a/src/hostname/hostnamed.c
b/src/hostname/hostnamed.c
index f7ae50dcd8a4aca9ed711bd2afe0caa9e9dee3e8..ece2b41671114f3402eeb19f7318f782fc527b01 100644
(file)
--- a/
src/hostname/hostnamed.c
+++ b/
src/hostname/hostnamed.c
@@
-627,6
+627,8
@@
int main(int argc, char *argv[]) {
goto finish;
}
goto finish;
}
+ sd_event_set_watchdog(event, true);
+
r = connect_bus(&context, event, &bus);
if (r < 0)
goto finish;
r = connect_bus(&context, event, &bus);
if (r < 0)
goto finish;