summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/main.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-08-10 16:06:35 +0000
committerKarl Berry <karl@freefriends.org>2019-08-10 16:06:35 +0000
commitbbb53f06c6f48d4c675d250829032e09f4065a86 (patch)
tree0583c905a5d67f3e1447456048b2e479311e4e83 /Build/source/utils/asymptote/main.cc
parentefd1dbbaa1332a9534c25024a0c295f423714851 (diff)
asy 2.52 sources
git-svn-id: svn://tug.org/texlive/trunk@51856 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/main.cc')
-rw-r--r--Build/source/utils/asymptote/main.cc7
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;
}