summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voß <thomas.voss@rub.de>2011-12-13 10:08:09 +0100
committerThomas Voß <thomas.voss@rub.de>2011-12-13 10:08:09 +0100
commit8ace60ed7cc70589de26ec3e5e409588a0f0bd00 (patch)
treefc2e874c3b34cd2a4e09cc926ad98922226a492f /include
parent932bf1ec03ed9160c9784fdbb7f3a9456a5beb50 (diff)
Modified Process::Terminate and Process::Kill to reset process identifier. Adjusted documentation.
Diffstat (limited to 'include')
-rw-r--r--include/xorg/gtest/process.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/xorg/gtest/process.h b/include/xorg/gtest/process.h
index ff545e1..6b73836 100644
--- a/include/xorg/gtest/process.h
+++ b/include/xorg/gtest/process.h
@@ -71,6 +71,7 @@ class Process {
* @throws std::runtime_error on failure.
*
* @post If successful: Child process forked and program started.
+ * @post If successful: Subsequent calls to Pid() return child process pid.
*/
void Start(const std::string& program, va_list args);
@@ -85,6 +86,7 @@ class Process {
* @throws std::runtime_error on failure.
*
* @post If successful: Child process forked and program started.
+ * @post If successful: Subsequent calls to Pid() return child process pid.
*/
void Start(const std::string& program, ...);
@@ -96,7 +98,7 @@ class Process {
* @returns true if termination succeeded, false otherwise.
*
* @post Child process terminated.
- *
+ * @post Subsequent calls to Pid() return -1.
*/
bool Terminate();
@@ -108,6 +110,7 @@ class Process {
* @returns true if kill succeeded, false otherwise.
*
* @post Child process killed.
+ * @post Subsequent calls to Pid() return -1.
*/
bool Kill();
@@ -134,7 +137,7 @@ class Process {
/**
* Accesses the pid of the child process.
*
- * @returns The pid of the child process.
+ * @returns The pid of the child process or -1.
*/
pid_t Pid() const;