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
ba87d481
Commit
ba87d481
authored
May 07, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix effect of recent mismerge (it made default pid file name ".pid" instead of "hostname.pid")
parent
4249382a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
sql/mysqld.cc
sql/mysqld.cc
+9
-8
No files found.
sql/mysqld.cc
View file @
ba87d481
...
...
@@ -3416,6 +3416,7 @@ static int init_common_variables(const char *conf_file_name, int argc,
char
**
argv
,
const
char
**
groups
)
{
char
buff
[
FN_REFLEN
],
*
s
;
const
char
*
basename
;
umask
(((
~
my_umask
)
&
0666
));
my_decimal_set_zero
(
&
decimal_zero
);
// set decimal_zero constant;
tzset
();
// Set tzname
...
...
@@ -3473,16 +3474,16 @@ static int init_common_variables(const char *conf_file_name, int argc,
Get hostname of computer (used by 'show variables') and as default
basename for the pid file if --log-basename is not given.
*/
const
char
*
basename
=
glob_hostname
;
if
(
gethostname
(
glob_hostname
,
sizeof
(
glob_hostname
))
<
0
)
{
strmake
(
glob_hostname
,
STRING_WITH_LEN
(
"localhost"
));
sql_print_warning
(
"gethostname failed, using '%s' as hostname"
,
glob_hostname
);
basename
=
"mysql"
;
}
strmake
(
pidfile_name
,
basename
,
sizeof
(
pidfile_name
)
-
5
);
else
{
basename
=
glob_hostname
;
}
strmake
(
pidfile_name
,
basename
,
sizeof
(
pidfile_name
)
-
5
);
strmov
(
fn_ext
(
pidfile_name
),
".pid"
);
// Add proper extension
/*
...
...
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