Tweak the description of when waitpid() doesn't return any status for a

non-blocking wait to avoid the word "empty".

Requested by:	ngie
This commit is contained in:
John Baldwin 2015-05-28 13:56:19 +00:00
parent b748af7305
commit 2f0219986c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283647

View File

@ -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);