]> git.eshelyaron.com Git - emacs.git/commitdiff
(child_setup): PRIO_PROCESS renamed to SET_EMACS_PRIORITY.
authorRichard M. Stallman <rms@gnu.org>
Fri, 13 May 1994 07:18:18 +0000 (07:18 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 13 May 1994 07:18:18 +0000 (07:18 +0000)
Don't call nice if emacs_priority is positive.

src/callproc.c

index b3f88e56f661918182577c996967b190cd553c72..cdf8f1a67c042450154944fe55b2207c1acfcf36 100644 (file)
@@ -574,11 +574,12 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
 
   int pid = getpid ();
 
-#ifdef PRIO_PROCESS
+#ifdef SET_EMACS_PRIORITY
   {
     extern int emacs_priority;
 
-    nice (- emacs_priority);
+    if (emacs_priority < 0)
+      nice (- emacs_priority);
   }
 #endif