Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 May 2017 09:03:04 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r318018 - user/pho/stress2/misc
Message-ID:  <201705090903.v49934Pw047997@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Tue May  9 09:03:04 2017
New Revision: 318018
URL: https://svnweb.freebsd.org/changeset/base/318018

Log:
  Added cleanup and more info on failure.
  
  Sponsored by:	Dell EMC Isilon

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

Modified: user/pho/stress2/misc/ptrace4.sh
==============================================================================
--- user/pho/stress2/misc/ptrace4.sh	Tue May  9 08:36:09 2017	(r318017)
+++ user/pho/stress2/misc/ptrace4.sh	Tue May  9 09:03:04 2017	(r318018)
@@ -47,9 +47,15 @@ l=0
 while ps -Unobody | grep -v grep | grep -q syscall4; do
 	l=$((l + 1))
 	if [ $l -gt 10 ]; then
+		ps -HlUnobody | grep syscall4
 		echo FAIL
 		break
 	fi
 	sleep 10
 done
+kill $! 2>/dev/null
+pkill -9 swap syscall4
+while pgrep -q swap; do
+	pkill -9 swap
+done
 wait



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