Module Name: src
Committed By: christos
Date: Sat Apr 3 22:44:44 UTC 2021
Modified Files:
src/external/mpl/bind/dist/lib/isc: app.c
Log Message:
Don't block signals if we are not bind (because if we are not bind, we don't
sigwait(2)).
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/mpl/bind/dist/lib/isc/app.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/mpl/bind/dist/lib/isc/app.c
diff -u src/external/mpl/bind/dist/lib/isc/app.c:1.4 src/external/mpl/bind/dist/lib/isc/app.c:1.5
--- src/external/mpl/bind/dist/lib/isc/app.c:1.4 Fri Feb 19 11:42:19 2021
+++ src/external/mpl/bind/dist/lib/isc/app.c Sat Apr 3 18:44:43 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: app.c,v 1.4 2021/02/19 16:42:19 christos Exp $ */
+/* $NetBSD: app.c,v 1.5 2021/04/03 22:44:43 christos Exp $ */
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -164,6 +164,8 @@ isc_app_ctxstart(isc_appctx_t *ctx) {
* blocked by default, ensuring that only the thread that calls
* sigwait() for them will get those signals.
*/
+ if (isc_bind9) {
+
if (sigemptyset(&sset) != 0 || sigaddset(&sset, SIGHUP) != 0 ||
sigaddset(&sset, SIGINT) != 0 || sigaddset(&sset, SIGTERM) != 0)
{
@@ -178,6 +180,8 @@ isc_app_ctxstart(isc_appctx_t *ctx) {
"isc_app_start() pthread_sigmask: %s", strbuf);
}
+ }
+
#endif /* WIN32 */
return (ISC_R_SUCCESS);