1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-08 15:35:02 +00:00

(init_sys_modes): Make gpm_fd nonblocking

and allow it to be interrupted by SIGIO.
This commit is contained in:
Nick Roberts 2007-05-20 02:32:29 +00:00
parent ae372f41ec
commit 3e748bcbcc

View File

@ -1675,6 +1675,14 @@ init_sys_modes ()
old_fcntl_owner = fcntl (input_fd, F_GETOWN, 0);
fcntl (input_fd, F_SETOWN, getpid ());
init_sigio (input_fd);
#ifdef HAVE_GPM_H
if (term_gpm)
{
fcntl (gpm_fd, F_SETOWN, getpid ());
fcntl (gpm_fd, F_SETFL, O_NONBLOCK);
init_sigio (gpm_fd);
}
#endif /* HAVE_GPM_H */
}
#endif /* F_GETOWN */
#endif /* F_SETOWN_BUG */