setup_signals: block SIGWINCH/SIGCONT for the calling thread #2175

pull/2177/head
nick black 3 years ago committed by nick black
parent a6d0a7e2cd
commit c0f432f99b

@ -171,6 +171,9 @@ int setup_signals(void* vnc, bool no_quit_sigs, bool no_winch_sigs,
fprintf(stderr, "Error installing term signal handler (%s)\n", strerror(errno));
return -1;
}
// we're not going to be restoring the old mask at exit, as who knows,
// they might have masked more things afterwards.
pthread_sigmask(SIG_BLOCK, &sa.sa_mask, NULL);
handling_winch = true;
}
if(!no_quit_sigs){

Loading…
Cancel
Save