diff --git a/roofit/roofitcore/src/RooMsgService.cxx b/roofit/roofitcore/src/RooMsgService.cxx index 63e2bdc641ad2681f1451e593c2004c91111be60..eb550fd88bfa23a930538ff8f0cdb4e8c75bb7e7 100644 --- a/roofit/roofitcore/src/RooMsgService.cxx +++ b/roofit/roofitcore/src/RooMsgService.cxx @@ -52,6 +52,7 @@ #include "RooGlobalFunc.h" #include "RooSentinel.h" +#include "TSystem.h" #include "Riostream.h" #include <iomanip> #include <fstream> @@ -399,7 +400,7 @@ ostream& RooMsgService::log(const RooAbsArg* self, MsgLevel level, MsgTopic topi if (_streams[as].prefix && !skipPrefix) { if (_showPid) { - (*_streams[as].os) << "pid" << getpid() << " " ; + (*_streams[as].os) << "pid" << gSystem->GetPid() << " " ; } (*_streams[as].os) << "[#" << as << "] " << _levelNames[level] << ":" << _topicNames[topic] << " -- " ; } @@ -424,7 +425,7 @@ ostream& RooMsgService::log(const TObject* self, MsgLevel level, MsgTopic topic, if (_streams[as].prefix && !skipPrefix) { if (_showPid) { - (*_streams[as].os) << "pid" << getpid() << " " ; + (*_streams[as].os) << "pid" << gSystem->GetPid() << " " ; } (*_streams[as].os) << "[#" << as << "] " << _levelNames[level] << ":" << _topicNames[topic] << " -- " ; } diff --git a/roofit/roofitcore/src/RooRealMPFE.cxx b/roofit/roofitcore/src/RooRealMPFE.cxx index dbcba692ea718e7e898df0482de27635a9defd5a..43eb5a0f6ca1fe1553fdd817ddf12a52298eadb9 100644 --- a/roofit/roofitcore/src/RooRealMPFE.cxx +++ b/roofit/roofitcore/src/RooRealMPFE.cxx @@ -140,7 +140,7 @@ void RooRealMPFE::initialize() { _pid = fork() ; if (_pid==0) { - cout << "child getpid = " << getpid() << endl ; + cout << "child getpid = " << gSystem->GetPid() << endl ; // Start server loop _state = Server ; @@ -153,7 +153,7 @@ void RooRealMPFE::initialize() { } else if (_pid>0) { - cout << "parent getpid = " << getpid() << endl ; + cout << "parent getpid = " << gSystem->GetPid() << endl ; // Client process - fork successul cout << "RooRealMPFE::initialize(" << GetName()