From 9794bc56af7a25be5a4ce06f7ab6aea1a11c6cf3 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 13 Jun 2013 14:48:04 +0200 Subject: [PATCH] register the system namespace on ubus regardless of the pid Signed-off-by: John Crispin --- ubus.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ubus.c b/ubus.c index 216cc16..202646a 100644 --- 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) -- 2.25.1