diff options
Diffstat (limited to 'Build/source/utils/asymptote/main.cc')
-rw-r--r-- | Build/source/utils/asymptote/main.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/main.cc b/Build/source/utils/asymptote/main.cc index 5e3503e6cc7..486e84ef781 100644 --- a/Build/source/utils/asymptote/main.cc +++ b/Build/source/utils/asymptote/main.cc @@ -29,6 +29,8 @@ #include <sys/wait.h> #include <sys/types.h> +#define GC_PTHREAD_SIGMASK_NEEDED + #include "common.h" #ifdef HAVE_LIBSIGSEGV @@ -178,7 +180,7 @@ void *asymain(void *A) #ifdef HAVE_GL #ifdef HAVE_PTHREAD if(gl::glthread && !getSetting<bool>("offscreen")) { - pthread_kill(gl::mainthread,SIGUSR2); + pthread_kill(gl::mainthread,SIGURG); pthread_join(gl::mainthread,NULL); } #endif @@ -193,7 +195,6 @@ void exitHandler(int) int main(int argc, char *argv[]) { - // cout << "hello?"; #ifdef HAVE_LIBGSL unsetenv("GSL_RNG_SEED"); unsetenv("GSL_RNG_TYPE"); @@ -226,7 +227,7 @@ int main(int argc, char *argv[]) sigaddset(&set, SIGCHLD); pthread_sigmask(SIG_BLOCK, &set, NULL); while(true) { - Signal(SIGUSR2,exitHandler); + Signal(SIGURG,exitHandler); camp::glrenderWrapper(); gl::initialize=true; } |