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
885a0c14
Commit
885a0c14
authored
Oct 21, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/cps/mysql/trees/mysql-5.0
parents
9e23aa11
a5f2355c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
server-tools/instance-manager/instance.cc
server-tools/instance-manager/instance.cc
+13
-3
No files found.
server-tools/instance-manager/instance.cc
View file @
885a0c14
...
...
@@ -138,15 +138,25 @@ static int wait_process(My_process_info *pi)
static
int
start_process
(
Instance_options
*
instance_options
,
My_process_info
*
pi
)
{
#ifndef __QNX__
*
pi
=
fork
();
#else
/*
On QNX one cannot use fork() in multithreaded environment and we
should use spawn() or one of it's siblings instead.
Here we use spawnv(), which is a combination of fork() and execv()
in one call. It returns the pid of newly created process (>0) or -1
*/
*
pi
=
spawnv
(
P_NOWAIT
,
instance_options
->
mysqld_path
,
instance_options
->
argv
);
#endif
switch
(
*
pi
)
{
case
0
:
case
0
:
/* never happens on QNX */
execv
(
instance_options
->
mysqld_path
,
instance_options
->
argv
);
/* exec never returns */
exit
(
1
);
case
1
:
log_info
(
"cannot
fork()
to start instance %s"
,
case
-
1
:
log_info
(
"cannot
create a new process
to start instance %s"
,
instance_options
->
instance_name
);
return
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