diff options
| author | Alexandru Ardelean | 2014-08-08 07:48:52 +0000 |
|---|---|---|
| committer | John Crispin | 2014-08-12 23:35:40 +0000 |
| commit | 06cbdf5bed92313498ea9a21a747777a2907f897 (patch) | |
| tree | 519376186948e45f01636d90154de7d09494d9b5 | |
| parent | c3d4118eee505f41c4d20a87f326479530837569 (diff) | |
| download | ubox-06cbdf5bed92313498ea9a21a747777a2907f897.tar.gz | |
ubox: exit(1) in logd if registering log object with ubus fails
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
| -rw-r--r-- | log/logd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"); } |