diff src/emacs.c @ 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 1fc792473491
children 3fcc21b4f083
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)