diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-04-09 17:03:34 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-04-09 17:03:34 +0300 |
commit | 43b59eb055df073a9a74173d79f5d6fe41322504 (patch) | |
tree | d9d6c5a7b7e27994805bbcd8272bdbadc5813990 | |
parent | 6a2ef269f37820db40b0d1cd19d7fdb7696c0d2a (diff) | |
download | libmts-43b59eb055df073a9a74173d79f5d6fe41322504.tar.gz libmts-43b59eb055df073a9a74173d79f5d6fe41322504.tar.bz2 libmts-43b59eb055df073a9a74173d79f5d6fe41322504.zip |
Execute system commands without invoking system shell
Added a missed ```child``` parameter to the list of ```executeBackground``` params in docs
-rw-r--r-- | include/mts/MTS_System.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/mts/MTS_System.h b/include/mts/MTS_System.h index cd9b9dd..d51a5ea 100644 --- a/include/mts/MTS_System.h +++ b/include/mts/MTS_System.h @@ -84,10 +84,11 @@ namespace MTS { * list of arguments bypasing the system shell. If succeded, information about the spawned * process is written to the \p child structure. * - * \param cmd name of the application to be executed - * \param argv vector of arguments (excluding argument zero) - * \param type open pipe for read from child or write to child - * \return true on success, false on failure + * \param cmd name of the application to be executed + * \param argv vector of arguments (excluding argument zero) + * \param type open pipe for read from child or write to child + * \param child on success is populated with child process information, on failure is not defined + * \return true on success, false on failure */ static bool executeBackground(const std::string& cmd, const std::vector<std::string>& argv, PipeType type, ChildHandle& child); |