blob: d14bb349339abea2491f39ccf3227a8ec04f68dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-lib_isc_app.c,v 1.1 2021/10/24 06:40:28 taca Exp $
* Take from NetBSD base.
--- lib/isc/app.c.orig 2021-09-07 09:37:05.000000000 +0000
+++ lib/isc/app.c
@@ -162,6 +162,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)
{
@@ -176,6 +178,8 @@ isc_app_ctxstart(isc_appctx_t *ctx) {
"isc_app_start() pthread_sigmask: %s", strbuf);
}
+ }
+
#endif /* WIN32 */
return (ISC_R_SUCCESS);
|