Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d04d81d2
Commit
d04d81d2
authored
Nov 10, 1993
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Use EMACS_GETPGRP macro.
(shut_down_emacs): Use EMACS_GETPGRP macro.
parent
06c5fe00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/emacs.c
src/emacs.c
+3
-6
No files found.
src/emacs.c
View file @
d04d81d2
...
...
@@ -324,7 +324,7 @@ main (argc, argv, envp)
#ifdef BSD
{
inherited_pgroup
=
getpgrp
(
0
);
inherited_pgroup
=
EMACS_GETPGRP
(
0
);
setpgrp
(
0
,
getpid
());
}
#endif
...
...
@@ -704,11 +704,8 @@ shut_down_emacs (sig, no_x, stuff)
/* If we are controlling the terminal, reset terminal modes */
#ifdef EMACS_HAVE_TTY_PGRP
{
#ifdef USG
int
pgrp
=
getpgrp
();
#else
int
pgrp
=
getpgrp
(
0
);
#endif
int
pgrp
=
EMACS_GETPGRP
(
0
);
int
tpgrp
;
if
(
EMACS_GET_TTY_PGRP
(
0
,
&
tpgrp
)
!=
-
1
&&
tpgrp
==
pgrp
)
...
...
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