This commit is contained in:
zawz 2020-02-05 13:54:53 +01:00
commit 2abb725fbc
2 changed files with 2 additions and 2 deletions

View file

@ -157,7 +157,7 @@ namespace ztd
/*! @see option* find(char c)
*/
option& operator[](const char c) { return *this->find(c); }
//! @brief Get option with char name
//! @brief Get option with string name
/*! @see option* find(const std::string& str);
*/
option& operator[](const std::string& str) { return *this->find(str); }

View file

@ -181,5 +181,5 @@ void ztd::shc::run_process(shc* p)
p->running = false;
p->wp_finish.notify_all();
p->return_value = ztd::pclose2(stream, pid);
p->return_value = WEXITSTATUS(ztd::pclose2(stream, pid));
}