X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FSignals.c;h=ac6d26674d92c6e2688455deb2a8dd6ebcc5900a;hb=bb01a96bea6bd7808332d43a5bed78d1aff4a3fd;hp=d5a046e01b20c291a4a4de93dfa7b78d3691fc5d;hpb=94e06463420582cc2d336b39a297e82af39e4cc4;p=ghc-hetmet.git diff --git a/ghc/rts/Signals.c b/ghc/rts/Signals.c index d5a046e..ac6d266 100644 --- a/ghc/rts/Signals.c +++ b/ghc/rts/Signals.c @@ -54,22 +54,25 @@ static nat n_haskell_handlers = 0; StgPtr pending_handler_buf[N_PENDING_HANDLERS]; StgPtr *next_pending_handler = pending_handler_buf; +/* ----------------------------------------------------------------------------- + * Signal handling + * -------------------------------------------------------------------------- */ + #ifdef RTS_SUPPORTS_THREADS pthread_t signalHandlingThread; #endif - // Handle all signals in the current thread. - // Called from Capability.c whenever the main capability is granted to a thread - // and in installDefaultHandlers +// Handle all signals in the current thread. +// Called from Capability.c whenever the main capability is granted to a thread +// and in installDefaultHandlers void -handleSignalsInThisThread() +handleSignalsInThisThread(void) { #ifdef RTS_SUPPORTS_THREADS signalHandlingThread = pthread_self(); #endif } - /* ----------------------------------------------------------------------------- * Allocate/resize the table of signal handlers. * -------------------------------------------------------------------------- */