diff options
| author | Nick Roberts | 2007-05-20 02:32:29 +0000 |
|---|---|---|
| committer | Nick Roberts | 2007-05-20 02:32:29 +0000 |
| commit | 3e748bcbcc047396ebbdb521636fe7ff369ae082 (patch) | |
| tree | f3d0923eedc702f426c27fc75fa906d53939cff9 /src/sysdep.c | |
| parent | ae372f41ec5486a381eb1e0e1e9eaff009c3bfd6 (diff) | |
| download | emacs-3e748bcbcc047396ebbdb521636fe7ff369ae082.tar.gz emacs-3e748bcbcc047396ebbdb521636fe7ff369ae082.zip | |
(init_sys_modes): Make gpm_fd nonblocking
and allow it to be interrupted by SIGIO.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 27e90349cb6..5dd7769ba4d 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1675,6 +1675,14 @@ init_sys_modes () | |||
| 1675 | old_fcntl_owner = fcntl (input_fd, F_GETOWN, 0); | 1675 | old_fcntl_owner = fcntl (input_fd, F_GETOWN, 0); |
| 1676 | fcntl (input_fd, F_SETOWN, getpid ()); | 1676 | fcntl (input_fd, F_SETOWN, getpid ()); |
| 1677 | init_sigio (input_fd); | 1677 | init_sigio (input_fd); |
| 1678 | #ifdef HAVE_GPM_H | ||
| 1679 | if (term_gpm) | ||
| 1680 | { | ||
| 1681 | fcntl (gpm_fd, F_SETOWN, getpid ()); | ||
| 1682 | fcntl (gpm_fd, F_SETFL, O_NONBLOCK); | ||
| 1683 | init_sigio (gpm_fd); | ||
| 1684 | } | ||
| 1685 | #endif /* HAVE_GPM_H */ | ||
| 1678 | } | 1686 | } |
| 1679 | #endif /* F_GETOWN */ | 1687 | #endif /* F_GETOWN */ |
| 1680 | #endif /* F_SETOWN_BUG */ | 1688 | #endif /* F_SETOWN_BUG */ |