projects
/
m6w6
/
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.
[m6w6/libmemcached]
/
libtest
/
killpid.h
diff --git
a/libtest/killpid.h
b/libtest/killpid.h
index becfd0ed8f0be7c460a7e31e9296c7ea835ea06b..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);
+
+bool check_pid(const std::string &filename);
pid_t get_pid_from_file(const std::string &filename, std::stringstream& error_message);
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);
+}