From owner-svn-src-user@freebsd.org  Mon May  1 08:21:51 2017
Return-Path: <owner-svn-src-user@freebsd.org>
Delivered-To: svn-src-user@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0A97D58452
 for <svn-src-user@mailman.ysv.freebsd.org>;
 Mon,  1 May 2017 08:21:51 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
 [IPv6:2610:1c1:1:6068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id C318F1B52;
 Mon,  1 May 2017 08:21:51 +0000 (UTC) (envelope-from pho@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
 by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v418Lob2045193;
 Mon, 1 May 2017 08:21:50 GMT (envelope-from pho@FreeBSD.org)
Received: (from pho@localhost)
 by repo.freebsd.org (8.15.2/8.15.2/Submit) id v418LopJ045192;
 Mon, 1 May 2017 08:21:50 GMT (envelope-from pho@FreeBSD.org)
Message-Id: <201705010821.v418LopJ045192@repo.freebsd.org>
X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org
 using -f
From: Peter Holm <pho@FreeBSD.org>
Date: Mon, 1 May 2017 08:21:50 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-user@freebsd.org
Subject: svn commit: r317643 - user/pho/stress2/misc
X-SVN-Group: user
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: svn-src-user@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "SVN commit messages for the experimental &quot; user&quot;
 src tree" <svn-src-user.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-src-user>,
 <mailto:svn-src-user-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-user/>
List-Post: <mailto:svn-src-user@freebsd.org>
List-Help: <mailto:svn-src-user-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-src-user>,
 <mailto:svn-src-user-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 01 May 2017 08:21:52 -0000

Author: pho
Date: Mon May  1 08:21:50 2017
New Revision: 317643
URL: https://svnweb.freebsd.org/changeset/base/317643

Log:
  Wait for swap to terminate.
  
  Sponsored by:	Dell EMC Isilon

Modified:
  user/pho/stress2/misc/pthread6.sh

Modified: user/pho/stress2/misc/pthread6.sh
==============================================================================
--- user/pho/stress2/misc/pthread6.sh	Mon May  1 08:07:59 2017	(r317642)
+++ user/pho/stress2/misc/pthread6.sh	Mon May  1 08:21:50 2017	(r317643)
@@ -45,7 +45,10 @@ echo "Expect SIGABRT"
 for i in `jot 50`; do
 	/tmp/pthread6
 done
-killall -q swap
+while pgrep -q swap; do
+	pkill swap
+	sleep 1
+done
 
 rm -f /tmp/pthread6 /tmp/pthread6.core
 exit 0