diff src/emacs.c @ 7716:a5dabfde673c

(main): In batch mode, don't set the pgrp.
author Richard M. Stallman <rms@gnu.org>
date Sat, 28 May 1994 04:46:38 +0000
parents c4d128d26fc9
children ddcb81020fa1
line wrap: on
line diff
--- a/src/emacs.c	Sat May 28 04:33:35 1994 +0000
+++ b/src/emacs.c	Sat May 28 04:46:38 1994 +0000
@@ -409,18 +409,20 @@
 
   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