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
ef0a24e0
Commit
ef0a24e0
authored
Aug 22, 2002
by
jani@rhols221.adsl.netsonic.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in mysqladmin shutdown when checking pid file status.
parent
cad0e514
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
client/mysqladmin.c
client/mysqladmin.c
+6
-7
No files found.
client/mysqladmin.c
View file @
ef0a24e0
...
...
@@ -457,19 +457,18 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
my_bool
got_pidfile
=
0
;
time_t
last_modified
=
0
;
/* to keep compiler happy */
struct
stat
pidfile_status
;
my_bool
check_pidfile_status
=
1
;
my_bool
check_pidfile_status
=
0
;
/*
Only wait for pidfile on local connections
If pidfile doesn't exist, continue without pid file checking
*/
if
(
mysql
->
unix_socket
)
got_pidfile
=
!
get_pidfile
(
mysql
,
pidfile
);
if
(
got_pidfile
&&
stat
(
pidfile
,
&
pidfile_status
))
check_pidfile_status
=
0
;
else
if
(
mysql
->
unix_socket
&&
(
got_pidfile
=
!
get_pidfile
(
mysql
,
pidfile
))
&&
!
stat
(
pidfile
,
&
pidfile_status
))
{
check_pidfile_status
=
1
;
last_modified
=
pidfile_status
.
st_mtime
;
}
if
(
mysql_shutdown
(
mysql
))
{
...
...
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