From 5a23bbfda16460c29cbb0c8b0bdee4b793a18203 Mon Sep 17 00:00:00 2001 From: Dan Haffey Date: Wed, 16 Dec 2015 23:40:34 -0800 Subject: [PATCH] No signals on the spinner thread. --- vere/term.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vere/term.c b/vere/term.c index 4ceff0de3..290f6159e 100644 --- a/vere/term.c +++ b/vere/term.c @@ -1103,6 +1103,14 @@ _term_stop_spinner(u3_utty* uty_u) static void _term_spinner_cb(void* ptr_v) { + // This thread shouldn't receive signals. + // + { + sigset_t set; + sigfillset(&set); + pthread_sigmask(SIG_BLOCK, &set, NULL); + } + u3_utty* uty_u = (u3_utty*)ptr_v; for ( uv_mutex_lock(&uty_u->tat_u.mex_u);