changeset 1201:4ea86d32c012

* callproc.c (child_setup): Don't use setpriority; we just need a simple, portable call to nice here.
author Jim Blandy <jimb@redhat.com>
date Wed, 23 Sep 1992 03:43:10 +0000
parents d2360c870787
children 3d1bf36f0896
files src/callproc.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Tue Sep 22 06:43:04 1992 +0000
+++ b/src/callproc.c	Wed Sep 23 03:43:10 1992 +0000
@@ -375,7 +375,11 @@
 
   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.  */