Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
unix
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
unix
Commits
05eea1ea
"README.md" did not exist on "effbdfe8e66b8d171c2b8ccd68fe727660993491"
Commit
05eea1ea
authored
13 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
forkProcess now works with +RTS -N; update docs and tests
parent
77927c81
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
System/Posix/Process/Common.hsc
+0
-4
0 additions, 4 deletions
System/Posix/Process/Common.hsc
tests/all.T
+1
-3
1 addition, 3 deletions
tests/all.T
with
1 addition
and
7 deletions
System/Posix/Process/Common.hsc
+
0
−
4
View file @
05eea1ea
...
...
@@ -282,10 +282,6 @@ in case of an error, an exception is thrown.
threads are not copied into the child process, it's easy to go wrong:
e.g. by accessing some shared resource that was held by another thread
in the parent.
GHC note: 'forkProcess' is not currently supported when using multiple
processors (@+RTS -N@), although it is supported with @-threaded@ as
long as only one processor is being used.
-}
forkProcess :: IO () -> IO ProcessID
...
...
This diff is collapsed.
Click to expand it.
tests/all.T
+
1
−
3
View file @
05eea1ea
...
...
@@ -8,7 +8,6 @@ test('signals002', compose(only_compiler_types(['ghc']), conf),
compile_and_run
,
['
-package unix
'])
test
('
fileexist01
',
conf
,
compile_and_run
,
['
-package unix
'])
test
('
forkprocess01
',
[
only_compiler_types
(['
ghc
']),
expect_fail_for
(['
threaded2
']),
extra_ways
(['
threaded1_ls
']),
# test #4512
conf
],
compile_and_run
,
['
-package unix
'])
...
...
@@ -53,8 +52,7 @@ test('fileStatusByteString',
['
-package unix
'])
test
('
1185
',
[
expect_fail_for
(['
threaded2
'])
],
compile_and_run
,
['
-package unix
'])
test
('
1185
',
normal
,
compile_and_run
,
['
-package unix
'])
# This test fails for me on x86/Linux with a "does not exist" error.
# Running with strace shows it is trying to talk to winbindd (part of
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment