svn commit: r318018 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Tue May 9 09:03:05 UTC 2017
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
More information about the svn-src-user
mailing list