]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Don't call setpgrp if !initialized.
authorRichard M. Stallman <rms@gnu.org>
Sat, 8 Jan 1994 13:26:00 +0000 (13:26 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 8 Jan 1994 13:26:00 +0000 (13:26 +0000)
src/emacs.c

index b3f4ca7981484efb3699ff35f0603e7bd56a1d1d..e20f488e8cc8b276d00698c1e3d835827e3bb9ea 100644 (file)
@@ -341,10 +341,11 @@ main (argc, argv, envp)
   clearerr (stdin);
 
 #ifdef BSD
-  {
-    inherited_pgroup = EMACS_GETPGRP (0);
-    setpgrp (0, getpid ());
-  }
+  if (initialized)
+    {
+      inherited_pgroup = EMACS_GETPGRP (0);
+      setpgrp (0, getpid ());
+    }
 #endif