From: Richard M. Stallman Date: Sat, 8 Jan 1994 13:26:00 +0000 (+0000) Subject: (main): Don't call setpgrp if !initialized. X-Git-Tag: emacs-19.34~10339 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8589b1137d5384ff4d1789b53525d25ef510443;p=emacs.git (main): Don't call setpgrp if !initialized. --- diff --git a/src/emacs.c b/src/emacs.c index b3f4ca79814..e20f488e8cc 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -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