From 1e0134b61e29606e5e6bcab2046e3dc8747c2c4e Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 13 Jul 1999 02:22:11 +0000 Subject: [PATCH] sigwait() apparently blocks SIGABRT on linux, causing the main thread to hang around instead of exiting if a child thread calls abort(). We now listen for SIGABRT. --- lib/isc/unix/app.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/isc/unix/app.c b/lib/isc/unix/app.c index a38a68af42..4adf3ad5d9 100644 --- a/lib/isc/unix/app.c +++ b/lib/isc/unix/app.c @@ -191,6 +191,9 @@ isc_app_run(void) { * Wait for SIGINT or SIGTERM. */ if (sigemptyset(&sset) != 0 || +#ifdef HAVE_LINUXTHREADS + sigaddset(&sset, SIGABRT) != 0 || +#endif sigaddset(&sset, SIGINT) != 0 || sigaddset(&sset, SIGTERM) != 0) { UNEXPECTED_ERROR(__FILE__, __LINE__,