diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-05 16:53:29 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-05 16:53:29 +0200 |
commit | 45ca87272954f46eb6d55365d5a2fbe3520d66ce (patch) | |
tree | 82d6a1f6f8d193c2d34f4e0ff62cfb69f26130ac /service | |
parent | a9ee0b693ebce775ab7a56fd09c92f98076fe559 (diff) | |
download | unitd-45ca87272954f46eb6d55365d5a2fbe3520d66ce.tar unitd-45ca87272954f46eb6d55365d5a2fbe3520d66ce.zip |
service: do not emit any service events before the ubus connection is up
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'service')
-rw-r--r-- | service/service.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/service.c b/service/service.c index 6426929..74feded 100644 --- a/service/service.c +++ b/service/service.c @@ -453,6 +453,9 @@ service_start_early(char *name, char *cmdline) void service_event(const char *type, const char *service, const char *instance) { + if (!ctx) + return; + blob_buf_init(&b, 0); blobmsg_add_string(&b, "service", service); if (instance) |