# HG changeset patch # User Nick Roberts # Date 1180502658 0 # Node ID 1f40aca3eadcf203109f26f9aed6d39f86b82956 # Parent f4a619a438a7afcc4d0fa29101a13f0016ff734b (init_sys_modes): Add rather than replace with O_NONBLOCK. diff -r f4a619a438a7 -r 1f40aca3eadc src/sysdep.c --- a/src/sysdep.c Wed May 30 05:22:46 2007 +0000 +++ b/src/sysdep.c Wed May 30 05:24:18 2007 +0000 @@ -1679,7 +1679,7 @@ 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 */