From 08ea52164ce021df1de874cebe8535f9253c5258 Mon Sep 17 00:00:00 2001 From: Unbit Date: Tue, 26 Feb 2013 09:58:17 +0100 Subject: [PATCH] fixed BSD support for Mono --- plugins/mono/mono_plugin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/mono/mono_plugin.c b/plugins/mono/mono_plugin.c index 83872224..7b6def5d 100644 --- a/plugins/mono/mono_plugin.c +++ b/plugins/mono/mono_plugin.c @@ -324,8 +324,11 @@ static void uwsgi_mono_init_thread(int core_id) { // SIGPWR, SIGXCPU: these are used internally by the GC and pthreads. sigset_t smask; sigemptyset(&smask); - sigaddset(&smask, SIGXCPU); +#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) + sigaddset(&smask, SIGXFSZ); +#else sigaddset(&smask, SIGPWR); +#endif if (sigprocmask(SIG_UNBLOCK, &smask, NULL)) { uwsgi_error("uwsgi_mono_init_thread()/sigprocmask()"); }