mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
[input] mask SIGTHR where defined #2191
This commit is contained in:
parent
343a74ac82
commit
e983c83d4e
@ -1882,6 +1882,11 @@ block_on_input(inputctx* ictx, unsigned* rtfd, unsigned* rifd){
|
||||
sigfillset(&smask);
|
||||
sigdelset(&smask, SIGCONT);
|
||||
sigdelset(&smask, SIGWINCH);
|
||||
#ifdef SIGTHR
|
||||
// freebsd uses SIGTHR for thread cancellation; need this to ensure wakeup
|
||||
// on exit (in cancel_and_join()).
|
||||
sigdelset(&smask, SIGTHR);
|
||||
#endif
|
||||
if(pfdcount == 0){
|
||||
loginfo("output queues full; blocking on signals\n");
|
||||
int signum;
|
||||
|
Loading…
x
Reference in New Issue
Block a user