diff options
author | onpopov <onpopov@yandex-team.ru> | 2022-02-10 16:50:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:38 +0300 |
commit | 8773f7661194d4c0bdb1e3937b2ff7ae01dd13f8 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/getpid.cpp | |
parent | 84a29dd4980d5b39615e453f289bd1a81213296d (diff) | |
download | ydb-8773f7661194d4c0bdb1e3937b2ff7ae01dd13f8.tar.gz |
Restoring authorship annotation for <onpopov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/getpid.cpp')
-rw-r--r-- | util/system/getpid.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/system/getpid.cpp b/util/system/getpid.cpp index fc4f2e7427..b9615f0dfa 100644 --- a/util/system/getpid.cpp +++ b/util/system/getpid.cpp @@ -1,6 +1,6 @@ -#include "getpid.h" - -#ifdef _win_ +#include "getpid.h" + +#ifdef _win_ // The include file should be Windows.h for Windows <=7, Processthreadsapi.h for Windows >=8 and Server 2012, // see http://msdn.microsoft.com/en-us/library/windows/desktop/ms683180%28v=vs.85%29.aspx // The way to determine windows version is described in http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745%28v=vs.85%29.aspx @@ -13,11 +13,11 @@ #include <sys/types.h> #include <unistd.h> #endif - + TProcessId GetPID() { -#ifdef _win_ - return GetCurrentProcessId(); -#else - return getpid(); -#endif -} +#ifdef _win_ + return GetCurrentProcessId(); +#else + return getpid(); +#endif +} |