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:
19f8547
)
#2860: remove redundant unblocking of signals
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 19 Feb 2009 10:32:58 +0000
(10:32 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 19 Feb 2009 10:32:58 +0000
(10:32 +0000)
rts/posix/Signals.c
patch
|
blob
|
history
diff --git
a/rts/posix/Signals.c
b/rts/posix/Signals.c
index
c016b9b
..
8268e6f
100644
(file)
--- a/
rts/posix/Signals.c
+++ b/
rts/posix/Signals.c
@@
-155,8
+155,6
@@
generic_handler(int sig USED_IF_THREADS,
siginfo_t *info,
void *p STG_UNUSED)
{
- sigset_t signals;
-
#if defined(THREADED_RTS)
if (io_manager_pipe != -1)
@@
-219,11
+217,6
@@
generic_handler(int sig USED_IF_THREADS,
MainCapability.context_switch = 1;
#endif /* THREADED_RTS */
-
- // re-establish the signal handler, and carry on
- sigemptyset(&signals);
- sigaddset(&signals, sig);
- sigprocmask(SIG_UNBLOCK, &signals, NULL);
}
/* -----------------------------------------------------------------------------