Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4291309
)
notify systemd of being started
author
José Bollo
<jose.bollo@iot.bzh>
Mon, 13 Mar 2017 14:16:26 +0000
(15:16 +0100)
committer
José Bollo
<jose.bollo@iot.bzh>
Mon, 13 Mar 2017 14:16:26 +0000
(15:16 +0100)
Change-Id: I10251b0800ac44e59d2a17ebd202c9f55c5c9196
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
3fb7fc1
..
4ae8af5
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-28,6
+28,7
@@
#include <sys/wait.h>
#include <systemd/sd-event.h>
+#include <systemd/sd-daemon.h>
#include "afb-config.h"
#include "afb-hswitch.h"
@@
-455,6
+456,7
@@
int main(int argc, char *argv[])
// infinite loop
eventloop = afb_common_get_event_loop();
+ sd_notify(1, "READY=1");
for (;;)
sd_event_run(eventloop, 30000000);