diff options
author | Dimitri John Ledkov <xnox@debian.org> | 2015-11-08 12:21:52 +0000 |
---|---|---|
committer | Dimitri John Ledkov <xnox@debian.org> | 2015-11-08 12:21:52 +0000 |
commit | 6878e3ca34c239cc8adbeb3ad7637f5833045b1a (patch) | |
tree | b2a72278f162b3c348a65095bb1c830635e74c3e /debian/checkarray | |
parent | 92726de859f39e6029a8aff8e05fa42bce4cccf9 (diff) |
Ignore errors attempting to apply *nice to checkarray, it may be done already. (Closes: #791554)
Diffstat (limited to 'debian/checkarray')
-rw-r--r-- | debian/checkarray | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/checkarray b/debian/checkarray index 88266c45..1fb97356 100644 --- a/debian/checkarray +++ b/debian/checkarray @@ -205,8 +205,8 @@ for array in $arrays; do resync_pid=$(ps -ef | awk -v dev=$array 'BEGIN { pattern = "^\\[" dev "_resync]$" } $8 ~ pattern { print $2 }') if [ -n "$resync_pid" ]; then [ $quiet -lt 1 ] && echo "$PROGNAME: I: selecting $ionice I/O scheduling class and $renice niceness for resync of $array." >&2 - ionice -p "$resync_pid" $ioarg || : - renice -n $renice -p "$resync_pid" 1>/dev/null || : + ionice -p "$resync_pid" $ioarg 2>/dev/null || : + renice -n $renice -p "$resync_pid" 1>/dev/null 2>&1 || : break fi sleep 1 |