diff src/emacs.c @ 5512:9d548eeedc06

(main): Don't call setpgrp if !initialized.
author Richard M. Stallman <rms@gnu.org>
date Sat, 08 Jan 1994 13:26:00 +0000
parents 2a0ba54aefb5
children 84fcbbd80e3d
line wrap: on
line diff
--- a/src/emacs.c	Sat Jan 08 13:10:41 1994 +0000
+++ b/src/emacs.c	Sat Jan 08 13:26:00 1994 +0000
@@ -341,10 +341,11 @@
   clearerr (stdin);
 
 #ifdef BSD
-  {
-    inherited_pgroup = EMACS_GETPGRP (0);
-    setpgrp (0, getpid ());
-  }
+  if (initialized)
+    {
+      inherited_pgroup = EMACS_GETPGRP (0);
+      setpgrp (0, getpid ());
+    }
 #endif