diff options
author | Cyril Hrubis <chrubis@suse.cz> | 2015-08-11 14:35:15 +0200 |
---|---|---|
committer | Cyril Hrubis <chrubis@suse.cz> | 2015-08-11 14:37:13 +0200 |
commit | 372620663e73254cd8ae57ea89e13b19850535cf (patch) | |
tree | 1ff1cc1fd9c5d1a8f608df5f13cdd139c886efe8 /doc | |
parent | e0ae8586089a599dded941183bba0cabb294589b (diff) |
doc: test-writing-guidelines: tst_record_chidlstatus
Add note about passing -1 as a child pid if you want to wait for any of
the process childrens.
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/test-writing-guidelines.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/test-writing-guidelines.txt b/doc/test-writing-guidelines.txt index 69b8cb769..2475262c6 100644 --- a/doc/test-writing-guidelines.txt +++ b/doc/test-writing-guidelines.txt @@ -645,6 +645,9 @@ void tst_record_childstatus(void (*cleanup)(void), pid_t child); This function does a 'waitpid()' on child process and record child process's return value into the overall test result. +NOTE: As 'waitpid()' is used you may pass '-1' as the child pid if you + want to wait for any of the process children. + 2.2.8 Fork() and Parent-child synchronization ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |