Commit 4575594e authored by monty@mashka.mysql.fi's avatar monty@mashka.mysql.fi

Rewrote nice handling to make more portable

parent d8823919
...@@ -159,7 +159,12 @@ then ...@@ -159,7 +159,12 @@ then
NOHUP_NICENESS=`nohup nice 2>&1` NOHUP_NICENESS=`nohup nice 2>&1`
if test $? -eq 0 && test x"$NOHUP_NICENESS" != x0 && nice --1 echo foo > /dev/null 2>&1 if test $? -eq 0 && test x"$NOHUP_NICENESS" != x0 && nice --1 echo foo > /dev/null 2>&1
then then
NOHUP_NICENESS="nice -n $NOHUP_NICENESS nohup" if $NOHUP_NICENESS -gt 0
then
$NOHUP_NICENESS="nice --$NOHUP_NICENESS nohup"
else
NOHUP_NICENESS="nice -$NOHUP_NICENESS nohup"
fi
else else
NOHUP_NICENESS="nohup" NOHUP_NICENESS="nohup"
fi 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