Documentation
¶
Overview ¶
Package nice implements the POSIX nice utility.
The niceness adjustment is parsed and validated as the POSIX and GNU specifications define, but it is never applied: the runtime cannot change the scheduling priority, so the utility operand runs with the niceness it would have anyway.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Prog ¶
Prog is the nice core utility.
func (*Prog) Run ¶
Run invokes the utility operand with the argument operands, after the niceness adjustment is parsed and validated. The adjustment is accepted but never applied, since the runtime cannot change the scheduling priority. The exit status of the utility becomes the exit status of nice, and the 127, 126 and 125 statuses of a failed execution are passed along with a diagnostic. The context error is returned as-is when the caller's context is done.