changeset 4957:dccce35b1173

(main): Use EMACS_GETPGRP macro. (shut_down_emacs): Use EMACS_GETPGRP macro.
author Richard M. Stallman <rms@gnu.org>
date Wed, 10 Nov 1993 20:02:12 +0000
parents 0f94e1e7d273
children 8d58e388e71b
files src/emacs.c
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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)