From: Dan White Date: Wed, 15 Aug 2018 21:32:57 +0000 (-0500) Subject: timeSampler: leave one dialog when closing all X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=8de981a7a9667acd26e200c34eeda25143dcb4bc;p=pubbin.git timeSampler: leave one dialog when closing all --- diff --git a/timeSampler b/timeSampler index c9f1625..4ec13af 100755 --- a/timeSampler +++ b/timeSampler @@ -166,9 +166,10 @@ function fifoPushKillOldest { function cleanup { - # Kill all running dialogs + # Kill all but the last running dialog boxes echo "caught signal!" - for i in $(seq 0 $BUFFER_END); do + for i in $(seq $(( $MAX_JOBS - 1)) ); do + echo $buffer fifoPushKillOldest $FAKE_PID done }