diff options
| author | Richard M. Stallman | 1994-05-28 04:46:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-28 04:46:38 +0000 |
| commit | 391fb07316a8297ba92a6c0dcd7756992ffeb9a1 (patch) | |
| tree | e388632b1bf9ed965ec078ab1e802bc66c44137f /src | |
| parent | 41d5a50ddede6fb6bcb0607ef93165280f3aeb99 (diff) | |
| download | emacs-391fb07316a8297ba92a6c0dcd7756992ffeb9a1.tar.gz emacs-391fb07316a8297ba92a6c0dcd7756992ffeb9a1.zip | |
(main): In batch mode, don't set the pgrp.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 16 |
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 |