From 515a4e0cb384ea83db7699ecce7d3927d45966c2 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 30 Apr 2008 16:59:45 +0000 Subject: [PATCH] Cothreads do not have a globaldata context and cannot handle signals which require one. Add SIGTERM, SIGWINCH, and SIGUSR2 to the list of signals cothreads mask. Reported-by: Rumko --- sys/platform/vkernel/platform/machintr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/platform/vkernel/platform/machintr.c b/sys/platform/vkernel/platform/machintr.c index fde246404c..9baa590ecd 100644 --- a/sys/platform/vkernel/platform/machintr.c +++ b/sys/platform/vkernel/platform/machintr.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/platform/vkernel/platform/machintr.c,v 1.16 2008/03/20 02:14:55 dillon Exp $ + * $DragonFly: src/sys/platform/vkernel/platform/machintr.c,v 1.17 2008/04/30 16:59:45 dillon Exp $ */ #include @@ -184,7 +184,8 @@ void cpu_mask_all_signals(void) { sigblock(sigmask(SIGALRM)|sigmask(SIGIO)|sigmask(SIGQUIT)| - sigmask(SIGUSR1)); + sigmask(SIGUSR1)|sigmask(SIGTERM)|sigmask(SIGWINCH)| + sigmask(SIGUSR2)); } void -- 2.41.0