diff options
| author | Richard M. Stallman | 1994-06-05 11:31:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-05 11:31:25 +0000 |
| commit | edb85f595aa12bfc4ab97d8c4e981687e42c6c74 (patch) | |
| tree | b2607fc56cf7b28ec8d0a2940188dbb32833eada /src | |
| parent | 054c8675bfdf965881ff4470360221cc6e9713eb (diff) | |
| download | emacs-edb85f595aa12bfc4ab97d8c4e981687e42c6c74.tar.gz emacs-edb85f595aa12bfc4ab97d8c4e981687e42c6c74.zip | |
(main): Do the setpgrp after checking for -batch.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/emacs.c b/src/emacs.c index abd6e9d1dd1..04f45a3a866 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -409,21 +409,6 @@ main (argc, argv, envp) | |||
| 409 | 409 | ||
| 410 | clearerr (stdin); | 410 | clearerr (stdin); |
| 411 | 411 | ||
| 412 | if (! noninteractive1) | ||
| 413 | { | ||
| 414 | #ifdef BSD_PGRPS | ||
| 415 | if (initialized) | ||
| 416 | { | ||
| 417 | inherited_pgroup = EMACS_GETPGRP (0); | ||
| 418 | setpgrp (0, getpid ()); | ||
| 419 | } | ||
| 420 | #else | ||
| 421 | #if defined (USG5) && defined (INTERRUPT_INPUT) | ||
| 422 | setpgrp (); | ||
| 423 | #endif | ||
| 424 | #endif | ||
| 425 | } | ||
| 426 | |||
| 427 | #ifdef APOLLO | 412 | #ifdef APOLLO |
| 428 | #ifndef APOLLO_SR10 | 413 | #ifndef APOLLO_SR10 |
| 429 | /* If USE_DOMAIN_ACLS environment variable exists, | 414 | /* If USE_DOMAIN_ACLS environment variable exists, |
| @@ -507,6 +492,21 @@ main (argc, argv, envp) | |||
| 507 | noninteractive = 1; | 492 | noninteractive = 1; |
| 508 | } | 493 | } |
| 509 | 494 | ||
| 495 | if (! noninteractive) | ||
| 496 | { | ||
| 497 | #ifdef BSD_PGRPS | ||
| 498 | if (initialized) | ||
| 499 | { | ||
| 500 | inherited_pgroup = EMACS_GETPGRP (0); | ||
| 501 | setpgrp (0, getpid ()); | ||
| 502 | } | ||
| 503 | #else | ||
| 504 | #if defined (USG5) && defined (INTERRUPT_INPUT) | ||
| 505 | setpgrp (); | ||
| 506 | #endif | ||
| 507 | #endif | ||
| 508 | } | ||
| 509 | |||
| 510 | #ifdef POSIX_SIGNALS | 510 | #ifdef POSIX_SIGNALS |
| 511 | init_signals (); | 511 | init_signals (); |
| 512 | #endif | 512 | #endif |