From owner-svn-src-user@FreeBSD.ORG Thu Sep 19 13:49:56 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 05F10AB5; Thu, 19 Sep 2013 13:49:56 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E87B92F0C; Thu, 19 Sep 2013 13:49:55 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8JDntHS092899; Thu, 19 Sep 2013 13:49:55 GMT (envelope-from pho@svn.freebsd.org) Received: (from pho@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8JDntWZ092898; Thu, 19 Sep 2013 13:49:55 GMT (envelope-from pho@svn.freebsd.org) Message-Id: <201309191349.r8JDntWZ092898@svn.freebsd.org> From: Peter Holm Date: Thu, 19 Sep 2013 13:49:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r255704 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Sep 2013 13:49:56 -0000 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); }