From owner-svn-src-user@FreeBSD.ORG Sun Jan 18 20:15:48 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A2B9A840; Sun, 18 Jan 2015 20:15:48 +0000 (UTC) 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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8F345A2B; Sun, 18 Jan 2015 20:15:48 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t0IKFmx7027701; Sun, 18 Jan 2015 20:15:48 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t0IKFmiZ027700; Sun, 18 Jan 2015 20:15:48 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201501182015.t0IKFmiZ027700@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Sun, 18 Jan 2015 20:15:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r277336 - 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.18-1 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: Sun, 18 Jan 2015 20:15:48 -0000 Author: pho Date: Sun Jan 18 20:15:47 2015 New Revision: 277336 URL: https://svnweb.freebsd.org/changeset/base/277336 Log: Cleanup script: Use full path for test program, fix trailing space and use sig_atomic_t in signal handler. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/alternativeFlushPath.sh Modified: user/pho/stress2/misc/alternativeFlushPath.sh ============================================================================== --- user/pho/stress2/misc/alternativeFlushPath.sh Sun Jan 18 20:00:33 2015 (r277335) +++ user/pho/stress2/misc/alternativeFlushPath.sh Sun Jan 18 20:15:47 2015 (r277336) @@ -48,20 +48,20 @@ rm -rf $dir mkdir -p $dir cd $dir sed '1,/^EOF/d' < $odir/$0 > $dir/alternativeFlushPath.c -cc -o alternativeFlushPath -Wall -Wextra alternativeFlushPath.c +cc -o /tmp/alternativeFlushPath -Wall -Wextra alternativeFlushPath.c rm -f alternativeFlushPath.c for j in `jot 10`; do - ./alternativeFlushPath & + /tmp/alternativeFlushPath & done for j in `jot 10`; do wait done sysctl vfs.altbufferflushes -rm -rf alternativeFlushPath $dir +rm -rf /tmp/alternativeFlushPath $dir -exit +exit EOF #include @@ -74,7 +74,7 @@ EOF #include #include -int more; +static volatile sig_atomic_t more; static void handler(int i __unused) {