Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
0688d49e
Commit
0688d49e
authored
Oct 11, 2004
by
simonmar
Browse files
[project @ 2004-10-11 10:54:57 by simonmar]
genericRaise() hack needed on FreeBSD too.
parent
c73f13cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/RtsUtils.c
View file @
0688d49e
...
...
@@ -297,14 +297,14 @@ heapCheckFail( void )
#endif
/*
* It seems that pthreads and signals interact oddly in OpenBSD
* pthreads (and possibly
FreeBSD
). When linking with -lpthreads, we
* It seems that pthreads and signals interact oddly in OpenBSD
& FreeBSD
* pthreads (and possibly
others
). When linking with -lpthreads, we
* have to use pthread_kill to send blockable signals. So use that
* when we have a threaded rts. So System.Posix.Signals will call
* genericRaise(), rather than raise(3).
*/
int
genericRaise
(
int
sig
)
{
#if defined(THREADED_RTS) && defined(openbsd_TARGET_OS)
#if defined(THREADED_RTS) &&
(
defined(openbsd_TARGET_OS)
|| defined(freebsd_TARGET_OS))
return
pthread_kill
(
pthread_self
(),
sig
);
#else
return
raise
(
sig
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment