From 57669cf1d3f0c1a7634b0df1fbd1d17141644c75 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Wed, 30 May 2007 05:24:18 +0000 Subject: [PATCH] (init_sys_modes): Add rather than replace with O_NONBLOCK. --- src/sysdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.2