From 5c115e1f37b662836062610204755e0410170b7c Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Tue, 9 Apr 2013 22:55:31 +0200 Subject: [PATCH] wait for last tasks --- atom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom b/atom index 23d8478..6cfbbdb 100755 --- a/atom +++ b/atom @@ -536,7 +536,7 @@ starttime=$concurrencychange taskcount=$count remaining=$taskcount failed=0 -while (( remaining && ! quit )) +while (( (remaining || ${#workers[@]}) && ! quit )) do if read -n 1 -t 0.1 userinput then