projects
/
project
/
ubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubox: exit(1) in logd if registering log object with ubus fails
[project/ubox.git]
/
log
/
logd.c
diff --git
a/log/logd.c
b/log/logd.c
index f61e6660fc580a55cda5821bc361a45e2dfc5933..a9fec9ad5cd445532e51c71c96e5009a3d3d140c 100644
(file)
--- a/
log/logd.c
+++ b/
log/logd.c
@@
-164,8
+164,10
@@
ubus_connect_handler(struct ubus_context *ctx)
int ret;
ret = ubus_add_object(ctx, &log_object);
- if (ret)
+ if (ret)
{
fprintf(stderr, "Failed to add object: %s\n", ubus_strerror(ret));
+ exit(1);
+ }
fprintf(stderr, "log: connected to ubus\n");
}