Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
665cbabe
Commit
665cbabe
authored
May 05, 2005
by
gluh@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #5843: Server code does not check whether PID file was successfully written
parent
60c4ce90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
sql/mysqld.cc
sql/mysqld.cc
+7
-1
No files found.
sql/mysqld.cc
View file @
665cbabe
...
@@ -6749,9 +6749,15 @@ static void create_pid_file()
...
@@ -6749,9 +6749,15 @@ static void create_pid_file()
char
buff
[
21
],
*
end
;
char
buff
[
21
],
*
end
;
end
=
int10_to_str
((
long
)
getpid
(),
buff
,
10
);
end
=
int10_to_str
((
long
)
getpid
(),
buff
,
10
);
*
end
++=
'\n'
;
*
end
++=
'\n'
;
(
void
)
my_write
(
file
,
(
byte
*
)
buff
,
(
uint
)
(
end
-
buff
),
MYF
(
MY_WME
));
if
(
!
my_write
(
file
,
(
byte
*
)
buff
,
(
uint
)
(
end
-
buff
),
MYF
(
MY_WME
|
MY_NABP
)))
{
(
void
)
my_close
(
file
,
MYF
(
0
));
(
void
)
my_close
(
file
,
MYF
(
0
));
return
;
}
}
(
void
)
my_close
(
file
,
MYF
(
0
));
}
sql_perror
(
"Can't start server: can't create PID file"
);
exit
(
1
);
}
}
...
...
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