summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc/unix/app.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-01-20 18:45:29 +0000
committerflorian <florian@openbsd.org>2020-01-20 18:45:29 +0000
commitfa3a1816afb93dde45ab942fddbaf1c47288305c (patch)
treed4c1325a99ecec92b8537b6d7b3c9779d5cc2ef2 /usr.sbin/bind/lib/isc/unix/app.c
parentRemove unused tm.c (diff)
downloadwireguard-openbsd-fa3a1816afb93dde45ab942fddbaf1c47288305c.tar.xz
wireguard-openbsd-fa3a1816afb93dde45ab942fddbaf1c47288305c.zip
unifdef threading related defines
input & OK millert
Diffstat (limited to 'usr.sbin/bind/lib/isc/unix/app.c')
-rw-r--r--usr.sbin/bind/lib/isc/unix/app.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/app.c b/usr.sbin/bind/lib/isc/unix/app.c
index 6d53fe11999..41a40bf537e 100644
--- a/usr.sbin/bind/lib/isc/unix/app.c
+++ b/usr.sbin/bind/lib/isc/unix/app.c
@@ -145,20 +145,6 @@ static struct {
(void *)isc__app_unblock
};
-#ifdef HAVE_LINUXTHREADS
-/*!
- * Linux has sigwait(), but it appears to prevent signal handlers from
- * running, even if they're not in the set being waited for. This makes
- * it impossible to get the default actions for SIGILL, SIGSEGV, etc.
- * Instead of messing with it, we just use sigsuspend() instead.
- */
-#undef HAVE_SIGWAIT
-/*!
- * We need to remember which thread is the main thread...
- */
-static pthread_t main_thread;
-#endif
-
#ifndef HAVE_SIGWAIT
static void
exit_action(int arg) {
@@ -515,11 +501,6 @@ isc__app_ctxrun(isc_appctx_t *ctx0) {
isc_task_t *task;
REQUIRE(VALID_APPCTX(ctx));
-
-#ifdef HAVE_LINUXTHREADS
- REQUIRE(main_thread == pthread_self());
-#endif
-
LOCK(&ctx->lock);
if (!ctx->running) {