svn commit: r277336 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Sun Jan 18 20:15:48 UTC 2015


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) {


More information about the svn-src-user mailing list