From a3d1c8a0e7d5586be13e2cd9b5029fd729bc1594 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 30 Oct 2017 18:21:39 -0500 Subject: [PATCH] fix issue with --reexec call --- src/rc/supervise-daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c index 3989cbc7..f3f51ff0 100644 --- a/src/rc/supervise-daemon.c +++ b/src/rc/supervise-daemon.c @@ -162,7 +162,8 @@ static void cleanup(void) static void re_exec(void) { syslog(LOG_WARNING, "Re-executing for %s", svcname); - execlp("supervise-daemon", "supervise-daemon", "--reexec", (char *) NULL); + execlp("supervise-daemon", "supervise-daemon", svcname, "--reexec", + (char *) NULL); syslog(LOG_ERR, "Unable to execute supervise-daemon: %s", strerror(errno)); exit(EXIT_FAILURE);