changeset 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 79342f44134d
children c8f19e4a4d0f
files src/emacs.c
diffstat 1 files changed, 9 insertions(+), 7 deletions(-) [+]
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