aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/sysdep.c7
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ae40cbcddd0..e1408227092 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12007-09-27 Stefan Monnier <monnier@iro.umontreal.ca> 12007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
4 (init_sys_modes): Check that gpm_tty is the current tty.
5
3 * alloc.c (allocate_terminal): Set the vector size to only count the 6 * alloc.c (allocate_terminal): Set the vector size to only count the
4 lisp fields. Initialize those to nil. 7 lisp fields. Initialize those to nil.
5 (mark_object): Don't treat terminals specially. 8 (mark_object): Don't treat terminals specially.
diff --git a/src/sysdep.c b/src/sysdep.c
index 9a7ad5b450f..35a107f34cf 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1192,7 +1192,7 @@ int inherited_pgroup;
1192 redirect the tty device handle FD to point to our own process 1192 redirect the tty device handle FD to point to our own process
1193 group. We need to be in our own process group to receive SIGIO 1193 group. We need to be in our own process group to receive SIGIO
1194 properly. */ 1194 properly. */
1195void 1195static void
1196narrow_foreground_group (int fd) 1196narrow_foreground_group (int fd)
1197{ 1197{
1198 int me = getpid (); 1198 int me = getpid ();
@@ -1210,7 +1210,7 @@ narrow_foreground_group (int fd)
1210} 1210}
1211 1211
1212/* Set the tty to our original foreground group. */ 1212/* Set the tty to our original foreground group. */
1213void 1213static void
1214widen_foreground_group (int fd) 1214widen_foreground_group (int fd)
1215{ 1215{
1216 if (inherited_pgroup != getpid ()) 1216 if (inherited_pgroup != getpid ())
@@ -1752,8 +1752,9 @@ init_sys_modes (tty_out)
1752 fcntl (fileno (tty_out->input), F_SETOWN, getpid ()); 1752 fcntl (fileno (tty_out->input), F_SETOWN, getpid ());
1753 init_sigio (fileno (tty_out->input)); 1753 init_sigio (fileno (tty_out->input));
1754#ifdef HAVE_GPM 1754#ifdef HAVE_GPM
1755 if (gpm_tty) 1755 if (gpm_tty == tty_out)
1756 { 1756 {
1757 /* Arrange for mouse events to give us SIGIO signals. */
1757 fcntl (gpm_fd, F_SETOWN, getpid ()); 1758 fcntl (gpm_fd, F_SETOWN, getpid ());
1758 fcntl (gpm_fd, F_SETFL, fcntl (gpm_fd, F_GETFL, 0) | O_NONBLOCK); 1759 fcntl (gpm_fd, F_SETFL, fcntl (gpm_fd, F_GETFL, 0) | O_NONBLOCK);
1759 init_sigio (gpm_fd); 1760 init_sigio (gpm_fd);