From ccc2b7114502b8cdf8add4fc2628f17f0e6df950 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 25 Jan 2023 04:08:16 +0000 Subject: supervise-daemon: mark various functions as noreturn For -Wmissing-noreturn. --- src/supervise-daemon/supervise-daemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/supervise-daemon') diff --git a/src/supervise-daemon/supervise-daemon.c b/src/supervise-daemon/supervise-daemon.c index 9a1b6f55..06706590 100644 --- a/src/supervise-daemon/supervise-daemon.c +++ b/src/supervise-daemon/supervise-daemon.c @@ -212,7 +212,7 @@ static void cleanup(void) free(changeuser); } -static void re_exec_supervisor(void) +_noreturn static void re_exec_supervisor(void) { syslog(LOG_WARNING, "Re-executing for %s", svcname); execlp("supervise-daemon", "supervise-daemon", svcname, "--reexec", @@ -358,7 +358,7 @@ static pid_t exec_command(const char *cmd) return pid; } -static void child_process(char *exec, char **argv) +_noreturn static void child_process(char *exec, char **argv) { RC_STRINGLIST *env_list; RC_STRING *env; @@ -591,7 +591,7 @@ static void child_process(char *exec, char **argv) eerrorx("%s: failed to exec `%s': %s", applet, exec,strerror(errno)); } -static void supervisor(char *exec, char **argv) +_noreturn static void supervisor(char *exec, char **argv) { FILE *fp; char buf[2048]; -- cgit v1.2.3