summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1992-09-23 03:43:10 +0000
committerJim Blandy <jimb@redhat.com>1992-09-23 03:43:10 +0000
commit4f0b9d499478e7f2726daba7a4d2f35b50ad3301 (patch)
treec7b9bc5814493b4c8aab2c5c285115918d98c209 /src/callproc.c
parent41ab0754d359b62b1c696b206a18db7ae07221e1 (diff)
downloademacs-4f0b9d499478e7f2726daba7a4d2f35b50ad3301.tar.gz
* callproc.c (child_setup): Don't use setpriority; we just need a
simple, portable call to nice here.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c6
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)
register int pid = getpid();
- setpriority (PRIO_PROCESS, pid, 0);
+ {
+ extern int emacs_priority;
+
+ nice (- emacs_priority);
+ }
#ifdef subprocesses
/* Close Emacs's descriptors that this process should not have. */