]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Use EMACS_GETPGRP macro.
authorRichard M. Stallman <rms@gnu.org>
Wed, 10 Nov 1993 20:02:12 +0000 (20:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 10 Nov 1993 20:02:12 +0000 (20:02 +0000)
(shut_down_emacs): Use EMACS_GETPGRP macro.

src/emacs.c

index 22d0929834dbb9c47f5e4141231ae6459bf41ffb..5c376ab2eeaf24ea5486ce829d5eca270ba95c6d 100644 (file)
@@ -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)