Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 May 2017 06:01:01 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r317668 - user/pho/stress2/misc
Message-ID:  <201705020601.v42611OF082931@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Tue May  2 06:01:01 2017
New Revision: 317668
URL: https://svnweb.freebsd.org/changeset/base/317668

Log:
  Simplify test termination.
  
  Sponsored by:	Dell EMC Isilon

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

Modified: user/pho/stress2/misc/mmap7.sh
==============================================================================
--- user/pho/stress2/misc/mmap7.sh	Tue May  2 05:20:54 2017	(r317667)
+++ user/pho/stress2/misc/mmap7.sh	Tue May  2 06:01:01 2017	(r317668)
@@ -45,12 +45,10 @@ rm -f wire_no_page.c
 cd $odir
 
 (cd ../testcases/swap; ./swap -t 1m -i 2) &
+sleep 1
 cp /tmp/mmap7 /tmp/mmap7.inputfile
 /tmp/mmap7 /tmp/mmap7.inputfile
-while ps | grep -v grep | grep -qw swap; do
-	killall -9 swap 2>/dev/null
-	sleep .1
-done
+while pkill -9 swap; do :; done
 wait
 rm -f /tmp/mmap7 /tmp/mmap7.inputfile
 exit



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