Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
75a8734b
Commit
75a8734b
authored
Sep 27, 2007
by
Stefan Monnier
Browse files
(narrow_foreground_group, widen_foreground_group): Static.
(init_sys_modes): Check that gpm_tty is the current tty.
parent
1023cbed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/ChangeLog
src/ChangeLog
+3
-0
src/sysdep.c
src/sysdep.c
+4
-3
No files found.
src/ChangeLog
View file @
75a8734b
2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
* sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
(init_sys_modes): Check that gpm_tty is the current tty.
* alloc.c (allocate_terminal): Set the vector size to only count the
lisp fields. Initialize those to nil.
(mark_object): Don't treat terminals specially.
...
...
src/sysdep.c
View file @
75a8734b
...
...
@@ -1192,7 +1192,7 @@ int inherited_pgroup;
redirect the tty device handle FD to point to our own process
group. We need to be in our own process group to receive SIGIO
properly. */
void
static
void
narrow_foreground_group
(
int
fd
)
{
int
me
=
getpid
();
...
...
@@ -1210,7 +1210,7 @@ narrow_foreground_group (int fd)
}
/* Set the tty to our original foreground group. */
void
static
void
widen_foreground_group
(
int
fd
)
{
if
(
inherited_pgroup
!=
getpid
())
...
...
@@ -1752,8 +1752,9 @@ init_sys_modes (tty_out)
fcntl
(
fileno
(
tty_out
->
input
),
F_SETOWN
,
getpid
());
init_sigio
(
fileno
(
tty_out
->
input
));
#ifdef HAVE_GPM
if
(
gpm_tty
)
if
(
gpm_tty
==
tty_out
)
{
/* Arrange for mouse events to give us SIGIO signals. */
fcntl
(
gpm_fd
,
F_SETOWN
,
getpid
());
fcntl
(
gpm_fd
,
F_SETFL
,
fcntl
(
gpm_fd
,
F_GETFL
,
0
)
|
O_NONBLOCK
);
init_sigio
(
gpm_fd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment