mirror of
https://github.com/troglobit/finit.git
synced 2026-11-30 21:18:22 +00:00
Fix lingering cond in service after reload with no cond
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
1c4bad5b73
commit
f08d375c36
1 file changed
+3
-1
+3
-1
@@ -442,8 +442,10 @@ void conf_parse_cond(svc_t *svc, char *cond)
|
|||||||
if (svc_is_daemon(svc))
|
if (svc_is_daemon(svc))
|
||||||
svc->sighup = 1;
|
svc->sighup = 1;
|
||||||
|
|
||||||
if (!cond)
|
if (!cond) {
|
||||||
|
memset(svc->cond, 0, sizeof(svc->cond));
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* First character must be '!' if SIGHUP is not supported. */
|
/* First character must be '!' if SIGHUP is not supported. */
|
||||||
ptr = cond;
|
ptr = cond;
|
||||||
|
|||||||
Reference in new issue
Block a user