Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1984ff7
)
kill iostat when restarting scrotwm
author
Marco Peereboom
<marco@conformal.com>
Sun, 13 Sep 2009 21:37:39 +0000
(21:37 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Sun, 13 Sep 2009 21:37:39 +0000
(21:37 +0000)
from Joe Gidi <joe@entropicblur.com>
baraction.sh
patch
|
blob
|
history
diff --git
a/baraction.sh
b/baraction.sh
index
03c32d2
..
d8d519c
100644
(file)
--- a/
baraction.sh
+++ b/
baraction.sh
@@
-78,8
+78,10
@@
while :; do
# instead of sleeping, use iostat as the update timer.
# cache the output of apm(8), no need to call that every second.
/usr/sbin/iostat -C -c 3600 |& # wish infinity was an option
+ PID="$!"
APM_DATA=""
I=0
+ trap "kill $PID; exit" TERM
while read -p; do
if [ $(( ${I} % 1 )) -eq 0 ]; then
APM_DATA=`/usr/sbin/apm -alb`