diff options
| author | Richard M. Stallman | 1994-01-08 13:26:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-08 13:26:00 +0000 |
| commit | e8589b1137d5384ff4d1789b53525d25ef510443 (patch) | |
| tree | 8c318aafcd945b0e86d29e5f2d4f2e14e56adb20 /src | |
| parent | bd4c276211421ea00f3d8b8e2d162681eb87a9e2 (diff) | |
| download | emacs-e8589b1137d5384ff4d1789b53525d25ef510443.tar.gz emacs-e8589b1137d5384ff4d1789b53525d25ef510443.zip | |
(main): Don't call setpgrp if !initialized.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 9 |
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 | ||