Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2015 15:15:17 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r279105 - user/pho/stress2/misc
Message-ID:  <201502211515.t1LFFHiX005158@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502211515.t1LFFHiX005158>