From: Thiemo S. <th...@us...> - 2006-09-26 23:10:13
|
Update of /cvsroot/sbcl/sbcl/src/runtime In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv25921/src/runtime Modified Files: interrupt.c Log Message: 0.9.17.1: Improve thread safety. Index: interrupt.c =================================================================== RCS file: /cvsroot/sbcl/sbcl/src/runtime/interrupt.c,v retrieving revision 1.113 retrieving revision 1.114 diff -u -d -r1.113 -r1.114 --- interrupt.c 7 Jun 2006 16:25:10 -0000 1.113 +++ interrupt.c 26 Sep 2006 23:10:02 -0000 1.114 @@ -1189,7 +1189,7 @@ sigset_t empty, current; int i; sigemptyset(&empty); - sigprocmask(SIG_BLOCK, &empty, ¤t); + thread_sigmask(SIG_BLOCK, &empty, ¤t); /* There should be exactly two blocked signals: the two we added * to sa_mask when setting up the handler. NetBSD doesn't block * the signal we're handling when SA_NODEFER is set; Linux before @@ -1220,7 +1220,7 @@ { sigset_t empty; sigemptyset(&empty); - sigprocmask(SIG_SETMASK, &empty, 0); + thread_sigmask(SIG_SETMASK, &empty, 0); } kill(getpid(), SA_NODEFER_TEST_KILL_SIGNAL); while (sigaction_nodefer_works == -1); |