From: Richard M. Stallman Date: Wed, 10 Nov 1993 20:02:12 +0000 (+0000) Subject: (main): Use EMACS_GETPGRP macro. X-Git-Tag: emacs-19.34~10894 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d04d81d2cbe6e6b30743051f5c3ccf08fd116e2c;p=emacs.git (main): Use EMACS_GETPGRP macro. (shut_down_emacs): Use EMACS_GETPGRP macro. --- 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)