Author: jhb
Date: Thu May 28 13:56:19 2015
New Revision: 283647
URL: https://svnweb.freebsd.org/changeset/base/283647

Log:
  Tweak the description of when waitpid() doesn't return any status for a
  non-blocking wait to avoid the word "empty".
  
  Requested by: ngie

Modified:
  head/tests/sys/kern/ptrace_test.c

Modified: head/tests/sys/kern/ptrace_test.c
==============================================================================
--- head/tests/sys/kern/ptrace_test.c   Thu May 28 13:12:05 2015        
(r283646)
+++ head/tests/sys/kern/ptrace_test.c   Thu May 28 13:56:19 2015        
(r283647)
@@ -224,9 +224,9 @@ ATF_TC_BODY(ptrace__parent_sees_exit_aft
        }
 
        /*
-        * 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_aft
        }
 
        /*
-        * 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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to