CommandExecuter.h | CommandExecuter.h | |||
---|---|---|---|---|
skipping to change at line 49 | skipping to change at line 49 | |||
#include "ListT.h" | #include "ListT.h" | |||
#include "SigHandler.h" | #include "SigHandler.h" | |||
// DEFINES | // DEFINES | |||
#define DEFTIMEOUT 60 | #define DEFTIMEOUT 60 | |||
class CommandExecuter : public SigHandler { | class CommandExecuter : public SigHandler { | |||
public: | public: | |||
CommandExecuter(); | CommandExecuter(const Chain& shellPath = Chain("/bin/sh")); | |||
~CommandExecuter(); | ~CommandExecuter(); | |||
int execute(const Chain& command, int timeout = DEFTIMEOUT); | int execute(const Chain& command, int timeout = DEFTIMEOUT); | |||
private: | private: | |||
Chain _shellPath; | ||||
void sigCatch(int sig); | void sigCatch(int sig); | |||
int _childPid; | int _childPid; | |||
}; | }; | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||