From 62c03f8facbb527aa3146ef7a43d4f182167c0d5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 27 Jul 2002 08:45:49 +0000 Subject: Port to POSIX 1003.1-2001 "nice", which requires the option "-n 5" rather than "-5". This matters with GNU "nice" if the user has set the _POSIX2_VERSION environment variable. --- src/nohup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nohup.sh') diff --git a/src/nohup.sh b/src/nohup.sh index b1f630ea4..2e70408b1 100755 --- a/src/nohup.sh +++ b/src/nohup.sh @@ -74,14 +74,14 @@ if [ -t 1 ]; then if cat /dev/null >> nohup.out; then echo "nohup: appending output to \`nohup.out'" 2>&1 umask $oldmask - exec "$niceprog" -5 -- "$@" >> nohup.out 2>&1 + exec "$niceprog" -n 5 -- "$@" >> nohup.out 2>&1 else cat /dev/null >> $HOME/nohup.out echo "nohup: appending output to \`$HOME/nohup.out'" 2>&1 umask $oldmask - exec "$niceprog" -5 -- "$@" >> $HOME/nohup.out 2>&1 + exec "$niceprog" -n 5 -- "$@" >> $HOME/nohup.out 2>&1 fi else umask $oldmask - exec "$niceprog" -5 -- "$@" + exec "$niceprog" -n 5 -- "$@" fi -- cgit v1.2.3-54-g00ecf