projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d926e4
)
don't overwrite io_manager_pipe if it is already set
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 23 Apr 2009 11:29:39 +0000
(11:29 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 23 Apr 2009 11:29:39 +0000
(11:29 +0000)
Part of the fix for #3171
rts/posix/Signals.c
patch
|
blob
|
history
diff --git
a/rts/posix/Signals.c
b/rts/posix/Signals.c
index
c1ffb5d
..
ace58c2
100644
(file)
--- a/
rts/posix/Signals.c
+++ b/
rts/posix/Signals.c
@@
-95,7
+95,9
@@
setIOManagerPipe (int fd)
{
// only called when THREADED_RTS, but unconditionally
// compiled here because GHC.Conc depends on it.
- io_manager_pipe = fd;
+ if (io_manager_pipe < 0) {
+ io_manager_pipe = fd;
+ }
}
#if defined(THREADED_RTS)