diff options
author | Ted Ross <tross@apache.org> | 2008-12-19 20:22:03 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2008-12-19 20:22:03 +0000 |
commit | 2660791c236676f28cdbf81da5c0d52110b36d17 (patch) | |
tree | 5a4166a17da10fcd64e05ecddec4c6f14dc0385f /cpp/src/qpid/sys/posix/SystemInfo.cpp | |
parent | d98c3cdf286d3ee16904d66337a20d94a8e95dc3 (diff) | |
download | qpid-python-2660791c236676f28cdbf81da5c0d52110b36d17.tar.gz |
QPID-1412 - c++ implementation of the QMF client API
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@728132 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/posix/SystemInfo.cpp')
-rwxr-xr-x | cpp/src/qpid/sys/posix/SystemInfo.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/posix/SystemInfo.cpp b/cpp/src/qpid/sys/posix/SystemInfo.cpp index 9bbd023e29..938d4861c4 100755 --- a/cpp/src/qpid/sys/posix/SystemInfo.cpp +++ b/cpp/src/qpid/sys/posix/SystemInfo.cpp @@ -94,4 +94,16 @@ void SystemInfo::getSystemId (std::string &osName, } } +uint32_t SystemInfo::getProcessId() +{ + return (uint32_t) ::getpid(); +} + +uint32_t SystemInfo::getParentProcessId() +{ + return (uint32_t) ::getppid(); +} + + + }} // namespace qpid::sys |