summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-05-28 13:56:19 +0000
committerjhb <jhb@FreeBSD.org>2015-05-28 13:56:19 +0000
commit7fad77ce36457a913d6a03f57f062eb3b1f052b8 (patch)
tree667ac6d87bc6be6efc04d5bf029a2fbbadcf93e7 /tests
parente79c62ff68fc74d88cb6f479859f6fae9baa5101 (diff)
downloadFreeBSD-src-7fad77ce36457a913d6a03f57f062eb3b1f052b8.zip
FreeBSD-src-7fad77ce36457a913d6a03f57f062eb3b1f052b8.tar.gz
Tweak the description of when waitpid() doesn't return any status for a
non-blocking wait to avoid the word "empty". Requested by: ngie
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/kern/ptrace_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/sys/kern/ptrace_test.c b/tests/sys/kern/ptrace_test.c
index 6bd5eeb..321dc82 100644
--- a/tests/sys/kern/ptrace_test.c
+++ b/tests/sys/kern/ptrace_test.c
@@ -224,9 +224,9 @@ ATF_TC_BODY(ptrace__parent_sees_exit_after_child_debugger, tc)
}
/*
- * This wait should return an empty pid. The parent should
- * see the child as non-exited until the debugger sees the
- * exit.
+ * This wait should return a pid of 0 to indicate no status to
+ * report. The parent should see the child as non-exited
+ * until the debugger sees the exit.
*/
wpid = waitpid(child, &status, WNOHANG);
ATF_REQUIRE(wpid == 0);
@@ -357,9 +357,9 @@ ATF_TC_BODY(ptrace__parent_sees_exit_after_unrelated_debugger, tc)
}
/*
- * This wait should return an empty pid. The parent should
- * see the child as non-exited until the debugger sees the
- * exit.
+ * This wait should return a pid of 0 to indicate no status to
+ * report. The parent should see the child as non-exited
+ * until the debugger sees the exit.
*/
wpid = waitpid(child, &status, WNOHANG);
ATF_REQUIRE(wpid == 0);
OpenPOWER on IntegriCloud