aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 784cf183a66..abd6e9d1dd1 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -409,18 +409,20 @@ main (argc, argv, envp)
409 409
410 clearerr (stdin); 410 clearerr (stdin);
411 411
412#ifdef BSD_PGRPS 412 if (! noninteractive1)
413 if (initialized)
414 { 413 {
415 inherited_pgroup = EMACS_GETPGRP (0); 414#ifdef BSD_PGRPS
416 setpgrp (0, getpid ()); 415 if (initialized)
417 } 416 {
417 inherited_pgroup = EMACS_GETPGRP (0);
418 setpgrp (0, getpid ());
419 }
418#else 420#else
419#if defined (USG5) && defined (INTERRUPT_INPUT) 421#if defined (USG5) && defined (INTERRUPT_INPUT)
420 setpgrp (); 422 setpgrp ();
421#endif 423#endif
422#endif 424#endif
423 425 }
424 426
425#ifdef APOLLO 427#ifdef APOLLO
426#ifndef APOLLO_SR10 428#ifndef APOLLO_SR10