From 68d10241fcf0f1bd4bc22aeb5deb9e0cf4a8e43d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 13 May 1994 07:18:18 +0000 Subject: [PATCH] (child_setup): PRIO_PROCESS renamed to SET_EMACS_PRIORITY. Don't call nice if emacs_priority is positive. --- src/callproc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/callproc.c b/src/callproc.c index b3f88e56f66..cdf8f1a67c0 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -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 -- 2.39.5