blob: e1d550fdad46abe5194d7b9a158e6b3296698ff4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* -----------------------------------------------------------------------------
*
* (c) The GHC Team, 1998-2005
*
* Signal processing / handling.
*
* ---------------------------------------------------------------------------*/
#ifndef POSIX_SIGNALS_H
#define POSIX_SIGNALS_H
#ifdef HAVE_SIGNAL_H
# include <signal.h>
#endif
extern rtsBool anyUserHandlers(void);
#if !defined(THREADED_RTS)
extern siginfo_t pending_handler_buf[];
extern siginfo_t *next_pending_handler;
#define signals_pending() (next_pending_handler != pending_handler_buf)
void startSignalHandlers(Capability *cap);
#endif
extern StgInt *signal_handlers;
#endif /* POSIX_SIGNALS_H */
|