From d04d81d2cbe6e6b30743051f5c3ccf08fd116e2c Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 10 Nov 1993 20:02:12 +0000 Subject: [PATCH] (main): Use EMACS_GETPGRP macro. (shut_down_emacs): Use EMACS_GETPGRP macro. --- src/emacs.c | 9 +++------ 1 file 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) #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) -- 2.39.5