Skip to content

Commit 05eea1e

Browse files
committed
forkProcess now works with +RTS -N; update docs and tests
1 parent 77927c8 commit 05eea1e

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

System/Posix/Process/Common.hsc

-4
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,6 @@ in case of an error, an exception is thrown.
282282
threads are not copied into the child process, it's easy to go wrong:
283283
e.g. by accessing some shared resource that was held by another thread
284284
in the parent.
285-
286-
GHC note: 'forkProcess' is not currently supported when using multiple
287-
processors (@+RTS -N@), although it is supported with @-threaded@ as
288-
long as only one processor is being used.
289285
-}
290286

291287
forkProcess :: IO () -> IO ProcessID

tests/all.T

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ test('signals002', compose(only_compiler_types(['ghc']), conf),
88
compile_and_run, ['-package unix'])
99
test('fileexist01', conf, compile_and_run, ['-package unix'])
1010
test('forkprocess01', [ only_compiler_types(['ghc']),
11-
expect_fail_for(['threaded2']),
1211
extra_ways(['threaded1_ls']), # test #4512
1312
conf ],
1413
compile_and_run, ['-package unix'])
@@ -53,8 +52,7 @@ test('fileStatusByteString',
5352
['-package unix'])
5453

5554

56-
test('1185', [ expect_fail_for(['threaded2']) ],
57-
compile_and_run, ['-package unix'])
55+
test('1185', normal, compile_and_run, ['-package unix'])
5856

5957
# This test fails for me on x86/Linux with a "does not exist" error.
6058
# Running with strace shows it is trying to talk to winbindd (part of

0 commit comments

Comments
 (0)