svn commit: r319313 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Wed May 31 10:27:15 UTC 2017
Author: pho
Date: Wed May 31 10:27:14 2017
New Revision: 319313
URL: https://svnweb.freebsd.org/changeset/base/319313
Log:
Added timeout.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/misc/callout_reset_on.sh
Modified: user/pho/stress2/misc/callout_reset_on.sh
==============================================================================
--- user/pho/stress2/misc/callout_reset_on.sh Wed May 31 10:01:15 2017 (r319312)
+++ user/pho/stress2/misc/callout_reset_on.sh Wed May 31 10:27:14 2017 (r319313)
@@ -319,6 +319,7 @@ rm -f /tmp/crlogger.c
N=200
cd /tmp
+start=`date '+%s'`
for i in `jot 40`; do
for j in `jot $N`; do
/tmp/crwriter | /tmp/crlogger 1236$j 2>/dev/null &
@@ -327,5 +328,7 @@ for i in `jot 40`; do
for j in `jot $N`; do
wait
done
+ [ $((`date '+%s'` - start)) -gt 1800 ] && break
done
rm -f /tmp/crwriter /tmp/crlogger ./barrier.*
+exit 0
More information about the svn-src-user
mailing list