diff options
author | anikella <anikella@yandex-team.ru> | 2022-02-10 16:50:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:52 +0300 |
commit | aae523fee7a5dc0b76bc9ef82b5df543ac40984a (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util | |
parent | 231c91be009a1fd2d4184c44e24669c4ea7887c5 (diff) | |
download | ydb-aae523fee7a5dc0b76bc9ef82b5df543ac40984a.tar.gz |
Restoring authorship annotation for <anikella@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/system/shellcommand.cpp | 16 | ||||
-rw-r--r-- | util/system/shellcommand.h | 14 |
2 files changed, 15 insertions, 15 deletions
diff --git a/util/system/shellcommand.cpp b/util/system/shellcommand.cpp index a11d0824b9..b1989b5c8c 100644 --- a/util/system/shellcommand.cpp +++ b/util/system/shellcommand.cpp @@ -366,14 +366,14 @@ public: return ExitCode; } - inline TProcessId GetPid() const { + inline TProcessId GetPid() const { #if defined(_win_) return GetProcessId(Pid); #else - return Pid; + return Pid; #endif - } - + } + inline TFileHandle& GetInputHandle() { return InputHandle; } @@ -1159,10 +1159,10 @@ TMaybe<int> TShellCommand::GetExitCode() const { return Impl->GetExitCode(); } -TProcessId TShellCommand::GetPid() const { - return Impl->GetPid(); -} - +TProcessId TShellCommand::GetPid() const { + return Impl->GetPid(); +} + TFileHandle& TShellCommand::GetInputHandle() { return Impl->GetInputHandle(); } diff --git a/util/system/shellcommand.h b/util/system/shellcommand.h index fceaf6d8cd..8730627fe5 100644 --- a/util/system/shellcommand.h +++ b/util/system/shellcommand.h @@ -407,14 +407,14 @@ public: TMaybe<int> GetExitCode() const; /** - * @brief get id of underlying process + * @brief get id of underlying process * @note depends on os: pid_t on UNIX, HANDLE on win - * - * @return pid or handle - */ - TProcessId GetPid() const; - - /** + * + * @return pid or handle + */ + TProcessId GetPid() const; + + /** * @brief return the file handle that provides input to the child process * * @return input file handle |