svn commit: r277715 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Sun Jan 25 21:16:25 UTC 2015
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);
}
More information about the svn-src-user
mailing list