1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-2005
5 * Signal processing / handling.
7 * ---------------------------------------------------------------------------*/
9 #ifndef POSIX_SIGNALS_H
10 #define POSIX_SIGNALS_H
12 extern rtsBool anyUserHandlers(void);
14 #if !defined(THREADED_RTS)
15 extern StgPtr pending_handler_buf[];
16 extern StgPtr *next_pending_handler;
17 #define signals_pending() (next_pending_handler != pending_handler_buf)
18 void startSignalHandlers(Capability *cap);
21 extern StgInt *signal_handlers;
23 #endif /* POSIX_SIGNALS_H */