summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-07-12 09:52:59 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-07-12 15:10:03 +1000
commitadceadb92964257320dfda743d6e773ce55df0b7 (patch)
tree9f5d3b7c480b40e23b4a62c46b80169b77c41775 /include
parentc238cc31c901dc5f7247a9c3d7ffc9d0b30842cc (diff)
process: Terminate/Kill can use a common helper function
The only difference is the signal and the message, and we can probably live without the message differentiation (since it throws an exception anyways). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'include')
-rw-r--r--include/xorg/gtest/xorg-gtest-process.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xorg/gtest/xorg-gtest-process.h b/include/xorg/gtest/xorg-gtest-process.h
index 0b721ce..e8c8d14 100644
--- a/include/xorg/gtest/xorg-gtest-process.h
+++ b/include/xorg/gtest/xorg-gtest-process.h
@@ -174,6 +174,7 @@ class Process {
/* Disable copy constructor, assignment operator */
Process(const Process&);
Process& operator=(const Process&);
+ bool KillSelf(int signal);
};
} // testing