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:
@@ -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__,
|
||||
|
Reference in New Issue
Block a user