]> git.pond.sub.org Git - empserver/commitdiff
(main, empth_start): Don't bother to catch SIGUSR1. Use SIGINT or
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 Mar 2005 12:30:58 +0000 (12:30 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 Mar 2005 12:30:58 +0000 (12:30 +0000)
SIGTERM to shutdown the server.

src/lib/empthread/pthread.c
src/server/main.c

index 301f962178e74a4ac5cedb0bbc88285a14d43352..c4ce9989ffbc76f7baa21265f58611fb0a08b0cc 100644 (file)
@@ -67,11 +67,6 @@ empth_start(void *ctx)
     /* actually it should inherit all this from main but... */
     sigemptyset(&act.sa_mask);
     act.sa_handler = shutdwn;
-    /* pthreads on Linux use SIGUSR1 (*shrug*) so only catch it if not on
-       a Linux box running POSIX threads -- STM */
-#if !(defined(__linux__) && defined(_EMPTH_POSIX))
-    sigaction(SIGUSR1, &act, NULL);
-#endif
     sigaction(SIGTERM, &act, NULL);
     sigaction(SIGINT, &act, NULL);
     act.sa_handler = panic;
index 6cd3ca42ebeef598fba8983dffdc82692c16e3a5..4456883a957a5ba2c2503eafbb08d23144477e1a 100644 (file)
@@ -294,11 +294,6 @@ start_server(int flags)
        have a posix threads u definitly have posix signals -- Sasha */
     sigemptyset(&act.sa_mask);
     act.sa_handler = shutdwn;
-    /* pthreads on Linux use SIGUSR1 (*shrug*) so only catch it if not on
-       a Linux box running POSIX threads -- STM */
-#if !(defined(__linux__) && defined(_EMPTH_POSIX))
-    sigaction(SIGUSR1, &act, NULL);
-#endif
     sigaction(SIGTERM, &act, NULL);
     sigaction(SIGINT, &act, NULL);
     act.sa_handler = panic;