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
8c5d64da
Commit
8c5d64da
authored
Jul 02, 2018
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-fix after MDEV-8540 - do not close stdin on Windows.
It is not open.
parent
0897a25c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sql/mysqld.cc
sql/mysqld.cc
+5
-0
No files found.
sql/mysqld.cc
View file @
8c5d64da
...
...
@@ -5149,8 +5149,10 @@ int win_main(int argc, char **argv)
int
mysqld_main
(
int
argc
,
char
**
argv
)
#endif
{
#ifndef _WIN32
/* We can't close stdin just now, because it may be booststrap mode. */
bool
please_close_stdin
=
fcntl
(
STDIN_FILENO
,
F_GETFD
)
>=
0
;
#endif
/*
Perform basic thread library and malloc initialization,
...
...
@@ -5495,9 +5497,12 @@ int mysqld_main(int argc, char **argv)
(
char
*
)
""
:
mysqld_unix_port
),
mysqld_port
,
MYSQL_COMPILATION_COMMENT
);
#ifndef _WIN32
/* Only close stdin if it was open initinally. */
if
(
please_close_stdin
)
fclose
(
stdin
);
#endif
#if defined(_WIN32) && !defined(EMBEDDED_LIBRARY)
Service
.
SetRunning
();
#endif
...
...
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