[input] only ever need 2 pfds

This commit is contained in:
nick black 2021-11-26 02:58:51 -05:00
parent 049f64ebf2
commit 821b2929b5
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

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