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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
29b5bd47
Commit
29b5bd47
authored
Mar 14, 2008
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add additional printouts
Fix formatting
parent
e49f083d
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 @
29b5bd47
...
@@ -289,25 +289,28 @@ int main(int argc, const char** argv )
...
@@ -289,25 +289,28 @@ int main(int argc, const char** argv )
if
(
TerminateJobObject
(
job_handle
,
201
)
==
0
)
if
(
TerminateJobObject
(
job_handle
,
201
)
==
0
)
message
(
"TerminateJobObject failed"
);
message
(
"TerminateJobObject failed"
);
CloseHandle
(
job_handle
);
CloseHandle
(
job_handle
);
message
(
"Job terminated and closed"
);
if
(
wait_res
!=
WAIT_OBJECT_0
+
CHILD
)
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"
);
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
);
message
(
"child wait failed: %d"
,
wait_res
);
}
}
else
else
{
{
message
(
"child wait succeeded"
);
message
(
"child wait succeeded"
);
}
}
/* Child's exit code should now be 201, no need to get it */
/* Child's exit code should now be 201, no need to get it */
}
}
message
(
"Closing handles"
);
for
(
int
i
=
0
;
i
<
NUM_HANDLES
;
i
++
)
for
(
int
i
=
0
;
i
<
NUM_HANDLES
;
i
++
)
CloseHandle
(
wait_handles
[
i
]);
CloseHandle
(
wait_handles
[
i
]);
message
(
"Exiting, exit_code: %d"
,
child_exit_code
);
exit
(
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