From: Nick Roberts Date: Wed, 30 May 2007 05:24:18 +0000 (+0000) Subject: (init_sys_modes): Add rather than replace with X-Git-Tag: emacs-pretest-23.0.90~12528 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=57669cf1d3f0c1a7634b0df1fbd1d17141644c75;p=emacs.git (init_sys_modes): Add rather than replace with O_NONBLOCK. --- 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 */