Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmansk...@oracle.com>
---
 doc/test-writing-guidelines.txt |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/doc/test-writing-guidelines.txt b/doc/test-writing-guidelines.txt
index af31d38..ea88126 100644
--- a/doc/test-writing-guidelines.txt
+++ b/doc/test-writing-guidelines.txt
@@ -871,6 +871,21 @@ newly created dir has two links allready the '.' and the 
link from parent
 dir). If no limit is hit or 'mkdir(2)' failed with 'ENOSPC' or 'EDQUOT', zero
 is returned previously created directories are removed.
 
+2.2.17 Getting an unused PID number
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Some tests require a PID value, which is not used by the OS or any process
+within it. For example, kill(2) should set errno to ESRCH if it's passed such 
a PID.
+
+[source,c]
+-------------------------------------------------------------------------------
+#include "test.h"
+
+pid_t tst_get_unused_pid(void (*cleanup)(void));
+-------------------------------------------------------------------------------
+
+Return a PID value not used by the OS or any process within it.
+
 2.3 Writing a testcase in shell
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-- 
1.7.1


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to