mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
"nice" the apt-check
This commit is contained in:
parent
b722791434
commit
c98864560e
1 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,11 @@ else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If we make it to this point, we actually have to do hard computational
|
||||||
|
# work to calculate updates. Let's try to be "nice" about it:
|
||||||
|
renice 10 $$ >/dev/null &2>1 || true
|
||||||
|
ionice -c3 -p $$ >/dev/null &2>1 || true
|
||||||
|
|
||||||
# If apt-check binary exists, use it
|
# If apt-check binary exists, use it
|
||||||
if [ -x /usr/lib/update-notifier/apt-check ]; then
|
if [ -x /usr/lib/update-notifier/apt-check ]; then
|
||||||
u=`/usr/lib/update-notifier/apt-check 2>&1 | tail -n 1 | sed "s/;/ /"`
|
u=`/usr/lib/update-notifier/apt-check 2>&1 | tail -n 1 | sed "s/;/ /"`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue