No signals on the spinner thread.

This commit is contained in:
Dan Haffey 2015-12-16 23:40:34 -08:00
parent ff8cabbfc5
commit 5a23bbfda1

View File

@ -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);