summaryrefslogtreecommitdiff
path: root/src/mongo/util/processinfo_darwin.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-05-23 13:43:28 -0400
committerAndy Schwerin <schwerin@10gen.com>2013-06-03 18:53:52 -0400
commit9b148b0419d79f7173d0e972e8427fea67f77616 (patch)
treebc9c96a4a82c4384a7d5220b69417eb1835b922c /src/mongo/util/processinfo_darwin.cpp
parent06c6c3b6fb835e1bcc62e5f725aca6d815cfb42e (diff)
downloadmongo-9b148b0419d79f7173d0e972e8427fea67f77616.tar.gz
SERVER-9809 Replace getpid() with ProcessId::getCurrent() and pid_t with ProcessId.
Diffstat (limited to 'src/mongo/util/processinfo_darwin.cpp')
-rw-r--r--src/mongo/util/processinfo_darwin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/processinfo_darwin.cpp b/src/mongo/util/processinfo_darwin.cpp
index 3f5658658e8..e2b99ce5a8f 100644
--- a/src/mongo/util/processinfo_darwin.cpp
+++ b/src/mongo/util/processinfo_darwin.cpp
@@ -38,7 +38,7 @@ using namespace std;
namespace mongo {
- ProcessInfo::ProcessInfo( pid_t pid ) : _pid( pid ) {
+ ProcessInfo::ProcessInfo( ProcessId pid ) : _pid( pid ) {
}
ProcessInfo::~ProcessInfo() {
@@ -53,7 +53,7 @@ namespace mongo {
mach_port_t task;
- if ( ( result = task_for_pid( mach_task_self() , _pid , &task) ) != KERN_SUCCESS ) {
+ if ((result = task_for_pid(mach_task_self(), _pid.toNative(), &task)) != KERN_SUCCESS) {
cout << "error getting task\n";
return 0;
}
@@ -76,7 +76,7 @@ namespace mongo {
mach_port_t task;
- if ( ( result = task_for_pid( mach_task_self() , _pid , &task) ) != KERN_SUCCESS ) {
+ if ((result = task_for_pid(mach_task_self(), _pid.toNative(), &task)) != KERN_SUCCESS) {
cout << "error getting task\n";
return 0;
}