1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-2009
7 * Do not #include this file directly: #include "Rts.h" instead.
9 * To understand the structure of the RTS headers, see the wiki:
10 * http://hackage.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
12 * ---------------------------------------------------------------------------*/
14 #ifndef RTS_BLOCKSIGNALS_H
15 #define RTS_BLOCKSIGNALS_H
17 /* Used by runProcess() in the process package
21 * Function: blockUserSignals()
23 * Temporarily block the delivery of further console events. Needed to
24 * avoid race conditions when GCing the queue of outstanding handlers or
25 * when emptying the queue by running the handlers.
28 void blockUserSignals(void);
31 * Function: unblockUserSignals()
33 * The inverse of blockUserSignals(); re-enable the deliver of console events.
35 void unblockUserSignals(void);
37 #endif /* RTS_BLOCKSIGNALS_H */