Commit 28a0c46c authored by Max Kellermann's avatar Max Kellermann

unix/Daemon: eliminate local variable "ret"

parent 7cc33d0f
...@@ -66,7 +66,7 @@ void ...@@ -66,7 +66,7 @@ void
daemonize_kill(void) daemonize_kill(void)
{ {
FILE *fp; FILE *fp;
int pid, ret; int pid;
if (pidfile.IsNull()) if (pidfile.IsNull())
FatalError("no pid_file specified in the config file"); FatalError("no pid_file specified in the config file");
...@@ -85,8 +85,7 @@ daemonize_kill(void) ...@@ -85,8 +85,7 @@ daemonize_kill(void)
} }
fclose(fp); fclose(fp);
ret = kill(pid, SIGTERM); if (kill(pid, SIGTERM) < 0)
if (ret < 0)
FormatFatalSystemError("unable to kill process %i", FormatFatalSystemError("unable to kill process %i",
int(pid)); int(pid));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment