aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1994-05-28 04:46:38 +0000
committerRichard M. Stallman <[email protected]>1994-05-28 04:46:38 +0000
commit391fb07316a8297ba92a6c0dcd7756992ffeb9a1 (patch)
treee388632b1bf9ed965ec078ab1e802bc66c44137f /src/emacs.c
parent41d5a50ddede6fb6bcb0607ef93165280f3aeb99 (diff)
(main): In batch mode, don't set the pgrp.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 784cf183a6..abd6e9d1dd 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -409,18 +409,20 @@ main (argc, argv, envp)
clearerr (stdin);
-#ifdef BSD_PGRPS
- if (initialized)
+ if (! noninteractive1)
{
- inherited_pgroup = EMACS_GETPGRP (0);
- setpgrp (0, getpid ());
- }
+#ifdef BSD_PGRPS
+ if (initialized)
+ {
+ inherited_pgroup = EMACS_GETPGRP (0);
+ setpgrp (0, getpid ());
+ }
#else
#if defined (USG5) && defined (INTERRUPT_INPUT)
- setpgrp ();
+ setpgrp ();
#endif
#endif
-
+ }
#ifdef APOLLO
#ifndef APOLLO_SR10