From 9b148b0419d79f7173d0e972e8427fea67f77616 Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Thu, 23 May 2013 13:43:28 -0400 Subject: SERVER-9809 Replace getpid() with ProcessId::getCurrent() and pid_t with ProcessId. --- src/mongo/util/processinfo_darwin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mongo/util/processinfo_darwin.cpp') 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; } -- cgit v1.2.1