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
f87d99c8
Unverified
Commit
f87d99c8
authored
Mar 15, 2020
by
Ben Gamari
🐢
Committed by
GitHub
Mar 15, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #172 from bgamari/master
Avoid redundant pattern match warning on Windows
parents
6f0c6445
062a69e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
System/Process/Windows.hsc
System/Process/Windows.hsc
+1
-4
cbits/runProcess.c
cbits/runProcess.c
+5
-0
No files found.
System/Process/Windows.hsc
View file @
f87d99c8
...
...
@@ -330,10 +330,7 @@ interruptProcessGroupOfInternal ph = do
withProcessHandle ph $ \p_ -> do
case p_ of
ClosedHandle _ -> return ()
_ -> do let h = case p_ of
OpenHandle x -> x
OpenExtHandle x _ -> x
_ -> error "interruptProcessGroupOfInternal"
_ -> do let h = phdlProcessHandle p_
#if mingw32_HOST_OS
pid <- getProcessId h
generateConsoleCtrlEvent cTRL_BREAK_EVENT pid
...
...
cbits/runProcess.c
View file @
f87d99c8
...
...
@@ -875,6 +875,11 @@ waitForJobCompletion ( HANDLE hJob )
sizeof
(
JOBOBJECT_BASIC_PROCESS_ID_LIST
),
NULL
);
if
(
!
success
)
{
maperrno
();
return
false
;
}
if
(
!
success
&&
GetLastError
()
==
ERROR_MORE_DATA
)
{
process_count
*=
2
;
free
(
pid_list
);
...
...
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