projects
/
oweals
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c261d39
)
register the system namespace on ubus regardless of the pid
author
John Crispin
<blogic@openwrt.org>
Thu, 13 Jun 2013 12:48:04 +0000
(14:48 +0200)
committer
John Crispin
<blogic@openwrt.org>
Thu, 13 Jun 2013 12:48:04 +0000
(14:48 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
ubus.c
patch
|
blob
|
history
diff --git
a/ubus.c
b/ubus.c
index 216cc16c5b08c50eb373e4c170fd882f5e96a9f0..202646a7422cdd07ae04b95929999b8b1584f034 100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-77,10
+77,9
@@
static void procd_ubus_try_connect(void)
ctx->connection_lost = procd_ubus_connection_lost;
ubus_connected = true;
ubus_init_service(ctx);
- if (getpid() == 1) {
+ ubus_init_system(ctx);
+ if (getpid() == 1)
ubus_init_log(ctx);
- ubus_init_system(ctx);
- }
}
static void procd_ubus_connection_lost(struct ubus_context *old_ctx)