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

Peter Holm pho at FreeBSD.org
Sat Feb 21 15:15:17 UTC 2015


Author: pho
Date: Sat Feb 21 15:15:16 2015
New Revision: 279105
URL: https://svnweb.freebsd.org/changeset/base/279105

Log:
  Use /tmp as working directory.
  
  Sponsored by:	 EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/callout_reset_on.sh
  user/pho/stress2/misc/signal.sh

Modified: user/pho/stress2/misc/callout_reset_on.sh
==============================================================================
--- user/pho/stress2/misc/callout_reset_on.sh	Sat Feb 21 15:02:27 2015	(r279104)
+++ user/pho/stress2/misc/callout_reset_on.sh	Sat Feb 21 15:15:16 2015	(r279105)
@@ -311,6 +311,7 @@ mycc -o /tmp/crlogger -Wall -Wextra -O2 
 rm -f /tmp/crlogger.c
 
 N=200
+cd /tmp
 for i in `jot 40`; do
 	for j in `jot $N`; do
 		/tmp/crwriter | /tmp/crlogger 1236$j 2>/dev/null &

Modified: user/pho/stress2/misc/signal.sh
==============================================================================
--- user/pho/stress2/misc/signal.sh	Sat Feb 21 15:02:27 2015	(r279104)
+++ user/pho/stress2/misc/signal.sh	Sat Feb 21 15:15:16 2015	(r279105)
@@ -36,6 +36,11 @@
 
 . ../default.cfg
 
+here=`pwd`
+wd=/tmp/signal.dir
+rm -rf $wd
+mkdir -p $wd
+cd $wd
 cat > waitthread.c <<EOF
 #include <unistd.h>
 #include <stdlib.h>
@@ -226,5 +231,6 @@ else
 fi
 
 kill $fifopid $gdbpid > /dev/null 2>&1
-rm -f gdbfifo gdbout pstat waitthread tkill /tmp/waitthread
 ps | grep -v grep | grep waitthread | awk '{print $1}' | xargs kill
+cd $here
+rm -rf $wd /tmp/waitthread 


More information about the svn-src-user mailing list