diff options
author | John Crispin <blogic@openwrt.org> | 2013-06-13 14:48:04 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-06-13 14:48:04 +0200 |
commit | 9794bc56af7a25be5a4ce06f7ab6aea1a11c6cf3 (patch) | |
tree | 3a6df30c06525b7777143001d9470763756a9e30 /ubus.c | |
parent | c261d39c1ae2db872495c2129c05d1154f46b5c3 (diff) | |
download | procd-9794bc56af7a25be5a4ce06f7ab6aea1a11c6cf3.tar.gz |
register the system namespace on ubus regardless of the pid
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'ubus.c')
-rw-r--r-- | ubus.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) |