- install a signal handler which can renice the process
SYNOPSIS
int set_auto_priority
(seconds)
ARGUMENTS
long
seconds
The length of the interval between nice level increments,
in seconds.
RETURNS
TRUE if an error was detected, FALSE if not.
FUNCTION
This routine installs TimerHandler as a virtual time using the setitimer
function. The old handler pointer is stored in a local variable, and
TimerHandler is used as a SIGVTALRM handler.
The interval with which TimerHandler should be called is given in seconds.
THe effect is an automatic re-nicing of the process when it runs for a long
time.
NOTE
For different architectures and operating systems, different functions are
called.
These functions are not available under Turbo-C / MS-DOS.