]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): In batch mode, don't set the pgrp.
authorRichard M. Stallman <rms@gnu.org>
Sat, 28 May 1994 04:46:38 +0000 (04:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 28 May 1994 04:46:38 +0000 (04:46 +0000)
src/emacs.c

index 784cf183a6654300f3d5535494ec692f67e8d997..abd6e9d1dd174b8739585b10a9dc687c8dbb1683 100644 (file)
@@ -409,18 +409,20 @@ main (argc, argv, envp)
 
   clearerr (stdin);
 
-#ifdef BSD_PGRPS
-  if (initialized)
+  if (! noninteractive1)
     {
-      inherited_pgroup = EMACS_GETPGRP (0);
-      setpgrp (0, getpid ());
-    }
+#ifdef BSD_PGRPS
+      if (initialized)
+       {
+         inherited_pgroup = EMACS_GETPGRP (0);
+         setpgrp (0, getpid ());
+       }
 #else
 #if defined (USG5) && defined (INTERRUPT_INPUT)
-  setpgrp ();
+      setpgrp ();
 #endif
 #endif
-
+    }
 
 #ifdef APOLLO
 #ifndef APOLLO_SR10