changeset 1202:3d1bf36f0896

* emacs.c (emacs_priority): Doc fix. (main): Use nice, not setpriority; we just need a simple, portable call to nice here.
author Jim Blandy <jimb@redhat.com>
date Wed, 23 Sep 1992 03:46:12 +0000
parents 4ea86d32c012
children bc1acd76b294
files src/emacs.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Wed Sep 23 03:43:10 1992 +0000
+++ b/src/emacs.c	Wed Sep 23 03:46:12 1992 +0000
@@ -74,7 +74,9 @@
    but instead should use the virtual terminal under which it was started */
 int inhibit_window_system;
 
-/* If nonzero, set Emacs to run at this priority.  */
+/* If nonzero, set Emacs to run at this priority.  This is also used
+   in child_setup and sys_suspend to make sure subshells run at normal
+   priority; Those functions have their own extern declaration.  */
 int emacs_priority;
 
 #ifdef HAVE_X_WINDOWS
@@ -303,7 +305,7 @@
 
 #ifdef PRIO_PROCESS
   if (emacs_priority)
-    setpriority (PRIO_PROCESS, getpid (), emacs_priority);
+    nice (emacs_priority);
   setuid (getuid ());
 #endif /* PRIO_PROCESS */