Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
Packages
process
Commits
e6b45f93
Unverified
Commit
e6b45f93
authored
Nov 05, 2019
by
Michael Snoyman
Committed by
GitHub
Nov 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #160 from Mistuke/dont-exit-when-event-isnt-ours
Don't exit when even isn't ours
parents
6f957bca
f8256f96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cbits/runProcess.c
cbits/runProcess.c
+5
-2
No files found.
cbits/runProcess.c
View file @
e6b45f93
...
...
@@ -903,8 +903,11 @@ waitForJobCompletion ( HANDLE hJob, HANDLE ioPort, DWORD timeout, int *pExitCode
// List of events we can listen to:
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms684141(v=vs.85).aspx
while
(
GetQueuedCompletionStatus
(
ioPort
,
&
CompletionCode
,
&
CompletionKey
,
&
Overlapped
,
timeout
)
&&
(
HANDLE
)
CompletionKey
==
hJob
)
{
&
CompletionKey
,
&
Overlapped
,
timeout
))
{
// If event wasn't meant of us, keep listening.
if
((
HANDLE
)
CompletionKey
!=
hJob
)
continue
;
switch
(
CompletionCode
)
{
...
...
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