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
384ecd09
Commit
384ecd09
authored
Mar 09, 2005
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix segfault in error message
git-svn-id:
https://svn.musicpd.org/mpd/trunk@3046
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
5f8bf2b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
src/main.c
+3
-3
No files found.
src/main.c
View file @
384ecd09
...
...
@@ -384,7 +384,7 @@ void cleanUpPidFile() {
unlink
(
pidFileParam
->
value
);
}
void
kill
Mpd
FromPidFile
(
char
*
cmd
,
int
killOption
)
{
void
killFromPidFile
(
char
*
cmd
,
int
killOption
)
{
struct
stat
st_cmd
;
struct
stat
st_exe
;
ConfigParam
*
pidFileParam
=
parseConfigFilePath
(
CONF_PID_FILE
,
1
);
...
...
@@ -395,7 +395,7 @@ void killMpdFromPidFile(char * cmd, int killOption) {
if
(
!
fp
)
{
ERROR
(
"unable to open %s
\"
%s
\"
: %s
\n
"
,
CONF_PID_FILE
,
pidFileParam
->
value
,
pidFileParam
->
line
,
strerror
(
errno
));
strerror
(
errno
));
exit
(
EXIT_FAILURE
);
}
if
(
fscanf
(
fp
,
"%i"
,
&
pid
)
!=
1
)
{
...
...
@@ -450,7 +450,7 @@ int main(int argc, char * argv[]) {
parseOptions
(
argc
,
argv
,
&
options
);
if
(
options
.
kill
)
kill
Mpd
FromPidFile
(
argv
[
0
],
options
.
kill
);
if
(
options
.
kill
)
killFromPidFile
(
argv
[
0
],
options
.
kill
);
initStats
();
initTagConfig
();
...
...
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