Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 May 2017 08:21:50 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r317643 - user/pho/stress2/misc
Message-ID:  <201705010821.v418LopJ045192@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705010821.v418LopJ045192>