aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJonathan Anderson <jonathan@FreeBSD.org>2011-07-08 12:16:30 +0000
committerJonathan Anderson <jonathan@FreeBSD.org>2011-07-08 12:16:30 +0000
commit345f2b96e21c26a7296c44469499f28ad566b436 (patch)
treefa59cde14529d32b89e630b31c40332129f5a74c /tools
parent49901133a1569b2d33efdbc447512832487c90db (diff)
Notes
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/kqueue/config.h2
-rw-r--r--tools/regression/kqueue/proc.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/regression/kqueue/config.h b/tools/regression/kqueue/config.h
index 9ca8cde17eba..a204092a2ab2 100644
--- a/tools/regression/kqueue/config.h
+++ b/tools/regression/kqueue/config.h
@@ -1,4 +1,4 @@
-# $FreeBSD$
+/* $FreeBSD$ */
#define HAVE_ERR_H 1
#define HAVE_SYS_EVENT_H 1
diff --git a/tools/regression/kqueue/proc.c b/tools/regression/kqueue/proc.c
index 2835c649e772..6288ee6d91b4 100644
--- a/tools/regression/kqueue/proc.c
+++ b/tools/regression/kqueue/proc.c
@@ -43,9 +43,9 @@ add_and_delete(void)
pid = fork();
if (pid == 0) {
struct stat s;
- if ((fstat(kqfd, &s) != -1) || (errno != EBADF))
- err(1, "%s:%d - %s: fstat(kqfd) in child did not return EBADF",
- __FILE__, __LINE__, __func__);
+ if (fstat(kqfd, &s) != -1)
+ errx(1, "kqueue inherited across fork! (%s() at %s:%d)",
+ __func__, __FILE__, __LINE__);
pause();
exit(2);