projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
tests: fix udp tests
[m6w6/libmemcached]
/
libtest
/
killpid.h
diff --git
a/libtest/killpid.h
b/libtest/killpid.h
index 12c438e5f391a9c85ef47f2045304154ecb64b3f..6bf5dee39b92d6854cda78b9bef823158d1cb3fd 100644
(file)
--- a/
libtest/killpid.h
+++ b/
libtest/killpid.h
@@
-1,8
+1,8
@@
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
- *
- * uTest
*
*
- * Copyright (C) 2011 Data Differential, http://datadifferential.com/
+ * Data Differential YATL (i.e. libtest) library
+ *
+ * Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@
-39,6
+39,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);
+static inline bool check_pid(pid_t pid_arg)
+{
+ return (pid_arg > 1);
+}