Commit 5bd83398 authored by unknown's avatar unknown

Rewrote nice handling to make more portable

parent 89f564e1
......@@ -157,9 +157,14 @@ NOHUP_NICENESS="nohup"
if test -w /
then
NOHUP_NICENESS=`nohup nice 2>&1`
if test $? -eq 0 && test x"$NOHUP_NICENESS" != x0 && nice --1 echo foo > /dev/null 2>&1
then
NOHUP_NICENESS="nice -n $NOHUP_NICENESS nohup"
if test $? -eq 0 && test x"$NOHUP_NICENESS" != x0 && nice --1 echo foo > /dev/null 2>&1
then
if $NOHUP_NICENESS -gt 0
then
$NOHUP_NICENESS="nice --$NOHUP_NICENESS nohup"
else
NOHUP_NICENESS="nice -$NOHUP_NICENESS nohup"
fi
else
NOHUP_NICENESS="nohup"
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment