106 static bool start(
const std::string &node,
yarp::os::Property &command, std::string &keyv);
114 static bool sigterm(
const std::string &node,
const std::string &keyv);
121 static bool sigtermall(
const std::string &node);
130 static bool kill(
const std::string &node,
const std::string &keyv,
int s);
138 static bool ps(
const std::string &node, std::vector<processInfo>& processes);
155 static bool isRunning(
const std::string &node,
const std::string &keyv);
163 static bool which(
const std::string &node,
const std::string &keyv);
170 static bool exit(
const std::string& node);
187#ifndef DOXYGEN_SHOULD_SKIP_THIS
189 static int main(
int argc,
char *argv[]);
192 static bool mStresstest;
197 static std::string mLoggerPort;
206 static void CleanZombie(
int pid);
207#define READ_FROM_PIPE 0
208#define WRITE_TO_PIPE 1
209#define REDIRECT_TO(from, to) yarp::run::impl::dup2(to, from)
215 static void Help(
const char* msg=
"");
222 static inline bool IS_PARENT_OF(
int pid){
return pid>0; }
223 static inline bool IS_NEW_PROCESS(
int pid){
return !pid; }
224 static inline bool IS_INVALID(
int pid){
return pid<0; }
227 static std::string mPortName;
231 static void cleanBeforeExec();
232 static void writeToPipe(
int fd, std::string str);
233 static int readFromPipe(
int fd,
char* &data,
int& buffsize);
236 static void cmdcpy(
char* &dst,
const char* src)
238 dst=
new char[(strlen(src)/8+2)*16];
242 static void cmdclean(
char **cmd)
A simple collection of objects that can be described and transmitted in a portable way.
A class for storing options and configuration information.
A port that is specialized as an RPC server.
A class to get the system (platform) status such as available memory, storage, CPU load and etc.
int main(int argc, char *argv[])
#define YARP_DISABLE_DLL_INTERFACE_WARNING
Disable MSVC C4251 warnings in the following code.
#define YARP_WARNING_POP
Ends a temporary alteration of the enabled warnings.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING
Suppress MSVC C4251 warning for the next line.
#define YARP_WARNING_PUSH
Starts a temporary alteration of the enabled warnings.