summaryrefslogtreecommitdiff
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2007-05-30 05:24:18 +0000
committerNick Roberts <nickrob@snap.net.nz>2007-05-30 05:24:18 +0000
commit57669cf1d3f0c1a7634b0df1fbd1d17141644c75 (patch)
treee5571cfa138ca8baff87ddf5dca1396ff3de76a6 /src/sysdep.c
parentb2d1ffb19532bb71ac7b20ba7ab763ab2a4b6b7c (diff)
downloademacs-57669cf1d3f0c1a7634b0df1fbd1d17141644c75.tar.gz
(init_sys_modes): Add rather than replace with
O_NONBLOCK.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 202cab4abd2..95ad90c2a1b 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -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 */