diff options
author | John Crispin <blogic@openwrt.org> | 2013-03-08 23:52:52 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-03-13 18:58:14 +0100 |
commit | 6390afe7a3cf1663979078711febb2be21fb4cf2 (patch) | |
tree | fb1b589607a2c5b2d41f72c15b21ed38600a0e1c /ubus.c | |
parent | 0f479be2068d7fe3bd5953e7454aaabb2be38d93 (diff) | |
download | procd-6390afe7a3cf1663979078711febb2be21fb4cf2.tar.gz |
add new main.c and fix Makefile/headers
Diffstat (limited to 'ubus.c')
-rw-r--r-- | ubus.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -61,7 +61,11 @@ static void procd_ubus_try_connect(void) ctx->connection_lost = procd_ubus_connection_lost; ubus_connected = true; - procd_init_service(ctx); + ubus_init_service(ctx); + if (getpid() == 1) { + ubus_init_log(ctx); + ubus_init_system(ctx); + } } static void procd_ubus_connection_lost(struct ubus_context *old_ctx) |