aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-08 13:26:00 +0000
committerRichard M. Stallman1994-01-08 13:26:00 +0000
commite8589b1137d5384ff4d1789b53525d25ef510443 (patch)
tree8c318aafcd945b0e86d29e5f2d4f2e14e56adb20 /src
parentbd4c276211421ea00f3d8b8e2d162681eb87a9e2 (diff)
downloademacs-e8589b1137d5384ff4d1789b53525d25ef510443.tar.gz
emacs-e8589b1137d5384ff4d1789b53525d25ef510443.zip
(main): Don't call setpgrp if !initialized.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c9
1 files 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)
341 clearerr (stdin); 341 clearerr (stdin);
342 342
343#ifdef BSD 343#ifdef BSD
344 { 344 if (initialized)
345 inherited_pgroup = EMACS_GETPGRP (0); 345 {
346 setpgrp (0, getpid ()); 346 inherited_pgroup = EMACS_GETPGRP (0);
347 } 347 setpgrp (0, getpid ());
348 }
348#endif 349#endif
349 350
350 351