Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2015 21:16:24 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r277715 - user/pho/stress2/misc
Message-ID:  <201501252116.t0PLGOen089352@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Sun Jan 25 21:16:24 2015
New Revision: 277715
URL: https://svnweb.freebsd.org/changeset/base/277715

Log:
  Ignore ENOTDIR error seen with fts_close() and whitespace cleanup.
  
  Sponsored by:	 EMC / Isilon storage division

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

Modified: user/pho/stress2/misc/kevent7.sh
==============================================================================
--- user/pho/stress2/misc/kevent7.sh	Sun Jan 25 20:37:32 2015	(r277714)
+++ user/pho/stress2/misc/kevent7.sh	Sun Jan 25 21:16:24 2015	(r277715)
@@ -167,7 +167,8 @@ test(void *arg __unused)
 		}
 
 		if (fts_close(fts) == -1)
-			err(1, "fts_close()");
+			if (errno != ENOTDIR)
+				warn("fts_close()");
 		if (pipe(fds) == -1)
 			err(1, "pipe()");
 		if (socketpair(PF_UNIX, SOCK_SEQPACKET, 0, socketpr) == -1)
@@ -249,11 +250,11 @@ main(void)
 			if (pthread_create(&rp, NULL, test, NULL) != 0)
 				perror("pthread_create");
 			usleep(1000);
-			for (j = 0; j < 50; j++) 
+			for (j = 0; j < 50; j++)
 				if (pthread_create(&cp[j], NULL, calls, NULL) != 0)
 					perror("pthread_create");
 
-			for (j = 0; j < 50; j++) 
+			for (j = 0; j < 50; j++)
 				pthread_join(cp[j], NULL);
 			_exit(0);
 		}



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