diff options
author | Andy Schwerin <schwerin@10gen.com> | 2013-05-23 13:43:28 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2013-06-03 18:53:52 -0400 |
commit | 9b148b0419d79f7173d0e972e8427fea67f77616 (patch) | |
tree | bc9c96a4a82c4384a7d5220b69417eb1835b922c /src/mongo/util/processinfo_darwin.cpp | |
parent | 06c6c3b6fb835e1bcc62e5f725aca6d815cfb42e (diff) | |
download | mongo-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.cpp | 6 |
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; } |