diff src/emacs.c @ 7788:ddcb81020fa1

(main): Do the setpgrp after checking for -batch.
author Richard M. Stallman <rms@gnu.org>
date Sun, 05 Jun 1994 11:31:25 +0000
parents a5dabfde673c
children 3b27d2451f83
line wrap: on
line diff
--- a/src/emacs.c	Sun Jun 05 11:30:29 1994 +0000
+++ b/src/emacs.c	Sun Jun 05 11:31:25 1994 +0000
@@ -409,21 +409,6 @@
 
   clearerr (stdin);
 
-  if (! noninteractive1)
-    {
-#ifdef BSD_PGRPS
-      if (initialized)
-	{
-	  inherited_pgroup = EMACS_GETPGRP (0);
-	  setpgrp (0, getpid ());
-	}
-#else
-#if defined (USG5) && defined (INTERRUPT_INPUT)
-      setpgrp ();
-#endif
-#endif
-    }
-
 #ifdef APOLLO
 #ifndef APOLLO_SR10
   /* If USE_DOMAIN_ACLS environment variable exists,
@@ -507,6 +492,21 @@
       noninteractive = 1;
     }
 
+  if (! noninteractive)
+    {
+#ifdef BSD_PGRPS
+      if (initialized)
+	{
+	  inherited_pgroup = EMACS_GETPGRP (0);
+	  setpgrp (0, getpid ());
+	}
+#else
+#if defined (USG5) && defined (INTERRUPT_INPUT)
+      setpgrp ();
+#endif
+#endif
+    }
+
 #ifdef POSIX_SIGNALS
   init_signals ();
 #endif