Date: Thu, 19 Sep 2013 13:49:55 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r255704 - user/pho/stress2/misc Message-ID: <201309191349.r8JDntWZ092898@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Thu Sep 19 13:49:55 2013 New Revision: 255704 URL: http://svnweb.freebsd.org/changeset/base/255704 Log: Make it possible to configure sleep time for single syscall tests. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/syscall4.sh Modified: user/pho/stress2/misc/syscall4.sh ============================================================================== --- user/pho/stress2/misc/syscall4.sh Thu Sep 19 13:01:31 2013 (r255703) +++ user/pho/stress2/misc/syscall4.sh Thu Sep 19 13:49:55 2013 (r255704) @@ -57,9 +57,11 @@ newfs -U md${mdstart}$part > /dev/null mount /dev/md${mdstart}$part $mntpoint chmod 777 $mntpoint +sleeptime=${sleeptime:-12} for i in `jot 10`; do +echo "Loop #$i" (cd $mntpoint; /tmp/syscall4 $* < /dev/null) & - sleep 180 + [ $# -eq 1 ] && sleep $sleeptime || sleep 180 killall -9 syscall4 ipcs | awk '/^(q|m|s)/ {print " -" $1, $2}' | xargs -L 1 ipcrm done @@ -287,7 +289,7 @@ main(int argc, char **argv) for (j = 0; j < 50; j++) pthread_join(cp[j], NULL); - exit(0); + _exit(0); } wait(NULL); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309191349.r8JDntWZ092898>