Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 2014 16:08:12 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r266407 - user/pho/stress2/misc
Message-ID:  <201405181608.s4IG8CSL003820@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Sun May 18 16:08:11 2014
New Revision: 266407
URL: http://svnweb.freebsd.org/changeset/base/266407

Log:
  Added cleanup in case nc(1) starts after the test program.
  
  Sponsored by:	EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/sendfile2.sh

Modified: user/pho/stress2/misc/sendfile2.sh
==============================================================================
--- user/pho/stress2/misc/sendfile2.sh	Sun May 18 16:07:35 2014	(r266406)
+++ user/pho/stress2/misc/sendfile2.sh	Sun May 18 16:08:11 2014	(r266407)
@@ -50,6 +50,7 @@ md1=`md5 large`
 nc -l 7000 > lf &
 sleep 0.1
 /tmp/sendfile2
+kill $! 2>/dev/null
 
 md2=`md5 large`
 [ "$md1" != "$md2" ] && printf "%s\n%s\n" "$md1" "$md2"



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