diff options
| author | Jim Blandy | 1992-09-23 03:43:10 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-09-23 03:43:10 +0000 |
| commit | 4f0b9d499478e7f2726daba7a4d2f35b50ad3301 (patch) | |
| tree | c7b9bc5814493b4c8aab2c5c285115918d98c209 | |
| parent | 41ab0754d359b62b1c696b206a18db7ae07221e1 (diff) | |
| download | emacs-4f0b9d499478e7f2726daba7a4d2f35b50ad3301.tar.gz emacs-4f0b9d499478e7f2726daba7a4d2f35b50ad3301.zip | |
* callproc.c (child_setup): Don't use setpriority; we just need a
simple, portable call to nice here.
| -rw-r--r-- | src/callproc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index d3fc963313d..779d16faaad 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -375,7 +375,11 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir) | |||
| 375 | 375 | ||
| 376 | register int pid = getpid(); | 376 | register int pid = getpid(); |
| 377 | 377 | ||
| 378 | setpriority (PRIO_PROCESS, pid, 0); | 378 | { |
| 379 | extern int emacs_priority; | ||
| 380 | |||
| 381 | nice (- emacs_priority); | ||
| 382 | } | ||
| 379 | 383 | ||
| 380 | #ifdef subprocesses | 384 | #ifdef subprocesses |
| 381 | /* Close Emacs's descriptors that this process should not have. */ | 385 | /* Close Emacs's descriptors that this process should not have. */ |