From e8589b1137d5384ff4d1789b53525d25ef510443 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 8 Jan 1994 13:26:00 +0000 Subject: [PATCH] (main): Don't call setpgrp if !initialized. --- src/emacs.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.39.5