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
60dcedb7
Commit
60dcedb7
authored
Mar 14, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add additional printouts
Fix formatting
parent
0e7e96fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
mysql-test/lib/My/SafeProcess/safe_process_win.cc
mysql-test/lib/My/SafeProcess/safe_process_win.cc
+12
-9
No files found.
mysql-test/lib/My/SafeProcess/safe_process_win.cc
View file @
60dcedb7
...
...
@@ -289,25 +289,28 @@ int main(int argc, const char** argv )
if
(
TerminateJobObject
(
job_handle
,
201
)
==
0
)
message
(
"TerminateJobObject failed"
);
CloseHandle
(
job_handle
);
message
(
"Job terminated and closed"
);
if
(
wait_res
!=
WAIT_OBJECT_0
+
CHILD
)
{
/* The child has not yet returned, wait for it */
/* The child has not yet returned, wait for it */
message
(
"waiting for child to exit"
);
if
((
wait_res
=
WaitForSingleObject
(
wait_handles
[
CHILD
],
INFINITE
))
!=
WAIT_OBJECT_0
)
{
if
((
wait_res
=
WaitForSingleObject
(
wait_handles
[
CHILD
],
INFINITE
))
!=
WAIT_OBJECT_0
)
{
message
(
"child wait failed: %d"
,
wait_res
);
}
else
{
message
(
"child wait succeeded"
);
}
}
else
{
message
(
"child wait succeeded"
);
}
/* Child's exit code should now be 201, no need to get it */
}
message
(
"Closing handles"
);
for
(
int
i
=
0
;
i
<
NUM_HANDLES
;
i
++
)
CloseHandle
(
wait_handles
[
i
]);
message
(
"Exiting, exit_code: %d"
,
child_exit_code
);
exit
(
child_exit_code
);
}
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