projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Remove requirements for rpm that were unused.
[awesomized/libmemcached]
/
libtest
/
server.h
diff --git
a/libtest/server.h
b/libtest/server.h
index 2f9fa2f1d0682d6b64b66f0a558159b73703b2ee..fa5240569f8531020d590b8fa757260474ff5980 100644
(file)
--- a/
libtest/server.h
+++ b/
libtest/server.h
@@
-204,12
+204,25
@@
public:
_log_file.clear();
}
_log_file.clear();
}
- bool args(Application&);
-
pid_t pid() const;
bool has_pid() const;
pid_t pid() const;
bool has_pid() const;
+ virtual bool has_pid_file() const
+ {
+ return true;
+ }
+
+ const std::string& error()
+ {
+ return _error;
+ }
+
+ void error(std::string arg)
+ {
+ _error= arg;
+ }
+
virtual bool wait_for_pidfile() const;
bool check_pid(pid_t pid_arg) const
virtual bool wait_for_pidfile() const;
bool check_pid(pid_t pid_arg) const
@@
-219,7
+232,7
@@
public:
bool is_socket() const
{
bool is_socket() const
{
- return _
hostname[0] == '/'
;
+ return _
is_socket
;
}
const std::string running() const
}
const std::string running() const
@@
-237,6
+250,16
@@
public:
bool validate();
bool validate();
+ void out_of_ban_killed(bool arg)
+ {
+ out_of_ban_killed_= arg;
+ }
+
+ bool out_of_ban_killed()
+ {
+ return out_of_ban_killed_;
+ }
+
protected:
bool set_pid_file();
Options _options;
protected:
bool set_pid_file();
Options _options;
@@
-249,10
+272,12
@@
private:
bool set_log_file();
bool set_socket_file();
void reset_pid();
bool set_log_file();
bool set_socket_file();
void reset_pid();
+ bool out_of_ban_killed_;
+ bool args(Application&);
+
+ std::string _error;
};
std::ostream& operator<<(std::ostream& output, const libtest::Server &arg);
} // namespace libtest
};
std::ostream& operator<<(std::ostream& output, const libtest::Server &arg);
} // namespace libtest
-
-