2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

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.
This commit is contained in:
Bob Halley
1999-07-13 02:22:11 +00:00
parent 0706cb4ae9
commit 1e0134b61e

View File

@@ -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__,