URI: 
       handle closing fds - scroll - scrollbackbuffer program for st
  HTML git clone git://git.suckless.org/scroll
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit ea938bbb0415e745bc969e4bf4123a41723e740f
   DIR parent 3fc721d074811416f4024976c472ddc396c4f00d
  HTML Author: Jan Klemkow <j.klemkow@wemelug.de>
       Date:   Thu, 16 Apr 2020 23:17:30 +0200
       
       handle closing fds
       
       Diffstat:
         M scroll.c                            |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/scroll.c b/scroll.c
       @@ -480,6 +480,9 @@ main(int argc, char *argv[])
                                doredraw = false;
                        }
        
       +                if (pfd[0].revents & POLLHUP || pfd[1].revents & POLLHUP)
       +                        break;
       +
                        if (pfd[0].revents & POLLIN) {
                                ssize_t n = read(STDIN_FILENO, input, sizeof(input)-1);