From: Nathan Lynch Subject: [PATCH 3/4] cr_tests/ptree1: wait for background tasks to exit Date: Fri, 26 Feb 2010 13:51:53 -0600 Message-ID: <1267213914-32219-3-git-send-email-ntl@pobox.com> References: <1267213914-32219-1-git-send-email-ntl@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1267213914-32219-1-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org It is more reliable and usually faster to wait for the shell's notification that background tasks have exited than it is to assume they have exited after three seconds have passed. Signed-off-by: Nathan Lynch --- process-tree/run-ptree1.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/process-tree/run-ptree1.sh b/process-tree/run-ptree1.sh index d0cefff..ed7ce9e 100755 --- a/process-tree/run-ptree1.sh +++ b/process-tree/run-ptree1.sh @@ -188,7 +188,7 @@ while [ $cnt -lt 15 ]; do thaw - sleep 3 + wait restore_fs_snapshot -- 1.6.0.6