(init_sys_modes): Add rather than replace with
authorNick Roberts <nickrob@snap.net.nz>
Wed, 30 May 2007 05:24:18 +0000 (05:24 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Wed, 30 May 2007 05:24:18 +0000 (05:24 +0000)
O_NONBLOCK.

src/sysdep.c

index 202cab4..95ad90c 100644 (file)
@@ -1679,7 +1679,7 @@ init_sys_modes ()
       if (term_gpm)
        {
          fcntl (gpm_fd, F_SETOWN, getpid ());
-         fcntl (gpm_fd, F_SETFL, O_NONBLOCK);
+         fcntl (gpm_fd, F_SETFL, fcntl (gpm_fd, F_GETFL, 0) | O_NONBLOCK);
          init_sigio (gpm_fd);
        }
 #endif /* HAVE_GPM */