From: Felix Fietkau Date: Thu, 5 Jun 2014 14:53:29 +0000 (+0200) Subject: service: do not emit any service events before the ubus connection is up X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=45ca87272954f46eb6d55365d5a2fbe3520d66ce;p=oweals%2Fprocd.git service: do not emit any service events before the ubus connection is up Signed-off-by: Felix Fietkau --- 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)