diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2007-05-30 05:24:18 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2007-05-30 05:24:18 +0000 |
commit | 57669cf1d3f0c1a7634b0df1fbd1d17141644c75 (patch) | |
tree | e5571cfa138ca8baff87ddf5dca1396ff3de76a6 /src/sysdep.c | |
parent | b2d1ffb19532bb71ac7b20ba7ab763ab2a4b6b7c (diff) | |
download | emacs-57669cf1d3f0c1a7634b0df1fbd1d17141644c75.tar.gz |
(init_sys_modes): Add rather than replace with
O_NONBLOCK.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 2 |
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 */ |