URI:
       lchat: ignore poll errors on interupts - lchat - A line oriented chat front end for ii.
  HTML git clone git://git.suckless.org/lchat
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit 5d78aec7398254c86ce90cb53d750af437f12a75
   DIR parent eaaf97e1cfa06ef15e4e8a3dbf03b7efd443c8cd
  HTML Author: Jan Klemkow <j.klemkow@wemelug.de>
       Date:   Wed, 22 Feb 2017 18:04:00 +0100
       
       lchat: ignore poll errors on interupts
       
       Diffstat:
         M lchat.c                             |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lchat.c b/lchat.c
       @@ -279,7 +279,8 @@ main(int argc, char *argv[])
                fputs(prompt, stdout);
        
                for (;;) {
       -                if (poll(pfd, 2, INFTIM) == -1)
       +                errno = 0;
       +                if (poll(pfd, 2, INFTIM) == -1 && errno != EINTR)
                                err(EXIT_FAILURE, "poll");
        
                        /* moves cursor back after linewrap */