Date: Sun, 18 Jan 2015 20:15:48 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r277336 - user/pho/stress2/misc Message-ID: <201501182015.t0IKFmiZ027700@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <stdio.h> @@ -74,7 +74,7 @@ EOF #include <sys/resource.h> #include <err.h> -int more; +static volatile sig_atomic_t more; static void handler(int i __unused) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501182015.t0IKFmiZ027700>