Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
28a0c46c
Commit
28a0c46c
authored
Aug 15, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unix/Daemon: eliminate local variable "ret"
parent
7cc33d0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Daemon.cxx
src/unix/Daemon.cxx
+2
-3
No files found.
src/unix/Daemon.cxx
View file @
28a0c46c
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment