changeset 81105:1f40aca3eadc

(init_sys_modes): Add rather than replace with O_NONBLOCK.
author Nick Roberts <nickrob@snap.net.nz>
date Wed, 30 May 2007 05:24:18 +0000
parents f4a619a438a7
children f4d5f1a40875
files src/sysdep.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */