mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
[input] only ever need 2 pfds
This commit is contained in:
parent
049f64ebf2
commit
821b2929b5
@ -1972,7 +1972,7 @@ block_on_input(inputctx* ictx, unsigned* rtfd, unsigned* rifd){
|
|||||||
#ifdef POLLRDHUP
|
#ifdef POLLRDHUP
|
||||||
inevents |= POLLRDHUP;
|
inevents |= POLLRDHUP;
|
||||||
#endif
|
#endif
|
||||||
struct pollfd pfds[3];
|
struct pollfd pfds[2];
|
||||||
int pfdcount = 0;
|
int pfdcount = 0;
|
||||||
if(!ictx->stdineof){
|
if(!ictx->stdineof){
|
||||||
if(ictx->ibufvalid != sizeof(ictx->ibuf)){
|
if(ictx->ibufvalid != sizeof(ictx->ibuf)){
|
||||||
|
Loading…
Reference in New Issue
Block a user