diff options
author | fluxgen <fluxgen> | 2006-02-12 08:03:47 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-02-12 08:03:47 (GMT) |
commit | 6eae743582c8fb4d95895f82ed809762b32898c5 (patch) | |
tree | 07bcb0554a0a0b7ad29b2e011d61e853054dd7eb /src/FbCommands.hh | |
parent | 3ceb311a322081cd17b449df373d366dde2fad47 (diff) | |
download | fluxbox_pavel-6eae743582c8fb4d95895f82ed809762b32898c5.zip fluxbox_pavel-6eae743582c8fb4d95895f82ed809762b32898c5.tar.bz2 |
added run() for ExecuteCmd, which returns pid of the child process
Diffstat (limited to 'src/FbCommands.hh')
-rw-r--r-- | src/FbCommands.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/FbCommands.hh b/src/FbCommands.hh index 1f7200d..2007e89 100644 --- a/src/FbCommands.hh +++ b/src/FbCommands.hh | |||
@@ -37,6 +37,10 @@ class ExecuteCmd: public FbTk::Command { | |||
37 | public: | 37 | public: |
38 | ExecuteCmd(const std::string &cmd, int screen_num = -1); | 38 | ExecuteCmd(const std::string &cmd, int screen_num = -1); |
39 | void execute(); | 39 | void execute(); |
40 | /** | ||
41 | * same as execute but returns pid | ||
42 | */ | ||
43 | int run(); | ||
40 | private: | 44 | private: |
41 | std::string m_cmd; | 45 | std::string m_cmd; |
42 | const int m_screen_num; | 46 | const int m_screen_num; |