From 8de981a7a9667acd26e200c34eeda25143dcb4bc Mon Sep 17 00:00:00 2001 From: Dan White Date: Wed, 15 Aug 2018 16:32:57 -0500 Subject: [PATCH] timeSampler: leave one dialog when closing all --- timeSampler | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 } -- 2.25.1