# HG changeset patch # User Richard M. Stallman # Date 752961732 0 # Node ID dccce35b11737f8c886725155ff19c570a78909d # Parent 0f94e1e7d27329af09b0edb54078c79138d94336 (main): Use EMACS_GETPGRP macro. (shut_down_emacs): Use EMACS_GETPGRP macro. diff -r 0f94e1e7d273 -r dccce35b1173 src/emacs.c --- a/src/emacs.c Wed Nov 10 19:55:18 1993 +0000 +++ b/src/emacs.c Wed Nov 10 20:02:12 1993 +0000 @@ -324,7 +324,7 @@ #ifdef BSD { - inherited_pgroup = getpgrp (0); + inherited_pgroup = EMACS_GETPGRP (0); setpgrp (0, getpid ()); } #endif @@ -704,11 +704,8 @@ /* 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)