diff options
| author | Richard M. Stallman | 1994-05-13 07:18:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-13 07:18:18 +0000 |
| commit | 68d10241fcf0f1bd4bc22aeb5deb9e0cf4a8e43d (patch) | |
| tree | b84961c5bfef6f1c2f7d355ff5e1c6c093284816 /src/callproc.c | |
| parent | a422068f596fa6cc2cde778d5eb28d4e69244587 (diff) | |
| download | emacs-68d10241fcf0f1bd4bc22aeb5deb9e0cf4a8e43d.tar.gz emacs-68d10241fcf0f1bd4bc22aeb5deb9e0cf4a8e43d.zip | |
(child_setup): PRIO_PROCESS renamed to SET_EMACS_PRIORITY.
Don't call nice if emacs_priority is positive.
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 5 |
1 files 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) | |||
| 574 | 574 | ||
| 575 | int pid = getpid (); | 575 | int pid = getpid (); |
| 576 | 576 | ||
| 577 | #ifdef PRIO_PROCESS | 577 | #ifdef SET_EMACS_PRIORITY |
| 578 | { | 578 | { |
| 579 | extern int emacs_priority; | 579 | extern int emacs_priority; |
| 580 | 580 | ||
| 581 | nice (- emacs_priority); | 581 | if (emacs_priority < 0) |
| 582 | nice (- emacs_priority); | ||
| 582 | } | 583 | } |
| 583 | #endif | 584 | #endif |
| 584 | 585 | ||