summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-22 17:39:16 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-22 17:39:16 -0400
commit1e69569033eff7685add2e499e514641c54ac466 (patch)
tree7f13949a7a7cef0bb50896290301fcda9e0dbde0
parentf30a74b1ca80c79f2f3d122d1bc3992a6edd2a86 (diff)
use bash builtin sleep
-rwxr-xr-xioslay-firefox2
1 files changed, 1 insertions, 1 deletions
diff --git a/ioslay-firefox b/ioslay-firefox
index e56ff84..2db3a49 100755
--- a/ioslay-firefox
+++ b/ioslay-firefox
@@ -1,5 +1,4 @@
1#!/bin/bash 1#!/bin/bash
2
3if [ "$UID" != 0 ] 2if [ "$UID" != 0 ]
4then 3then
5 sudo -- "$0" "$@" 4 sudo -- "$0" "$@"
@@ -93,6 +92,7 @@ new_pids()
93 [ "$1" != "$2" ] 92 [ "$1" != "$2" ]
94} 93}
95 94
95enable -f /usr/lib/bash/sleep sleep 2>/dev/null || true
96unset IOTOP_PID 96unset IOTOP_PID
97relaunch_iotop() 97relaunch_iotop()
98{ 98{