projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge working tree with build tree.
[awesomized/libmemcached]
/
libtest
/
killpid.h
diff --git
a/libtest/killpid.h
b/libtest/killpid.h
index 83c7bb0a94c87591a7e7dd584c81246d3ff86b24..e35f8d994ec58b027788b2dfffb366d55fec567b 100644
(file)
--- a/
libtest/killpid.h
+++ b/
libtest/killpid.h
@@
-25,6
+25,13
@@
bool kill_pid(pid_t pid_arg);
bool kill_pid(pid_t pid_arg);
-
pid_t
kill_file(const std::string &filename);
+
bool
kill_file(const std::string &filename);
-pid_t get_pid_from_file(const std::string &filename);
+bool check_pid(const std::string &filename);
+
+pid_t get_pid_from_file(const std::string &filename, std::stringstream& error_message);
+
+static inline bool check_pid(pid_t pid_arg)
+{
+ return (pid_arg > 1);
+}