Most of this module's variables are read-only after initialization.
Make blocked_signals and buffer thread-local.
*/
-#include "scheme.h"
+#include "prims.h"
#include "option.h"
#include "ux.h"
#include "ossig.h"
((sizeof (sigset_t)), save_signal_mask, restore_signal_mask);
}
-static sigset_t blocked_signals;
+static __thread sigset_t blocked_signals;
void
block_signals (void)
const char *
find_signal_name (int signo)
{
- static char buffer [32];
+ static __thread char buffer [32];
struct signal_descriptor * descriptor = (find_signal_descriptor (signo));
if (descriptor != 0)
return (descriptor -> name);