diff options
| author | Richard M. Stallman | 1993-11-10 20:02:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-10 20:02:12 +0000 |
| commit | d04d81d2cbe6e6b30743051f5c3ccf08fd116e2c (patch) | |
| tree | 9d45a52691dfb1f99f96b5100dea69573fd0ece0 /src | |
| parent | 06c5fe00340d6a79484611f426c69e6005a4abb2 (diff) | |
| download | emacs-d04d81d2cbe6e6b30743051f5c3ccf08fd116e2c.tar.gz emacs-d04d81d2cbe6e6b30743051f5c3ccf08fd116e2c.zip | |
(main): Use EMACS_GETPGRP macro.
(shut_down_emacs): Use EMACS_GETPGRP macro.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/emacs.c b/src/emacs.c index 22d0929834d..5c376ab2eea 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -324,7 +324,7 @@ main (argc, argv, envp) | |||
| 324 | 324 | ||
| 325 | #ifdef BSD | 325 | #ifdef BSD |
| 326 | { | 326 | { |
| 327 | inherited_pgroup = getpgrp (0); | 327 | inherited_pgroup = EMACS_GETPGRP (0); |
| 328 | setpgrp (0, getpid ()); | 328 | setpgrp (0, getpid ()); |
| 329 | } | 329 | } |
| 330 | #endif | 330 | #endif |
| @@ -704,11 +704,8 @@ shut_down_emacs (sig, no_x, stuff) | |||
| 704 | /* If we are controlling the terminal, reset terminal modes */ | 704 | /* If we are controlling the terminal, reset terminal modes */ |
| 705 | #ifdef EMACS_HAVE_TTY_PGRP | 705 | #ifdef EMACS_HAVE_TTY_PGRP |
| 706 | { | 706 | { |
| 707 | #ifdef USG | 707 | int pgrp = EMACS_GETPGRP (0); |
| 708 | int pgrp = getpgrp (); | 708 | |
| 709 | #else | ||
| 710 | int pgrp = getpgrp (0); | ||
| 711 | #endif | ||
| 712 | int tpgrp; | 709 | int tpgrp; |
| 713 | if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1 | 710 | if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1 |
| 714 | && tpgrp == pgrp) | 711 | && tpgrp == pgrp) |