changeset 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 b4da518d3ec7
children d7770758acfd
files src/emacs.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
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