Skip to content
Snippets Groups Projects
Commit 4a62eb46 authored by Rene Brun's avatar Rene Brun
Browse files

Use gSystem->GetPid instead of the non portable getpid

git-svn-id: http://root.cern.ch/svn/root/trunk@23545 27541ba8-7e3a-0410-8455-c3a389f83636
parent 01bae4c8
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include "RooGlobalFunc.h" #include "RooGlobalFunc.h"
#include "RooSentinel.h" #include "RooSentinel.h"
#include "TSystem.h"
#include "Riostream.h" #include "Riostream.h"
#include <iomanip> #include <iomanip>
#include <fstream> #include <fstream>
...@@ -399,7 +400,7 @@ ostream& RooMsgService::log(const RooAbsArg* self, MsgLevel level, MsgTopic topi ...@@ -399,7 +400,7 @@ ostream& RooMsgService::log(const RooAbsArg* self, MsgLevel level, MsgTopic topi
if (_streams[as].prefix && !skipPrefix) { if (_streams[as].prefix && !skipPrefix) {
if (_showPid) { if (_showPid) {
(*_streams[as].os) << "pid" << getpid() << " " ; (*_streams[as].os) << "pid" << gSystem->GetPid() << " " ;
} }
(*_streams[as].os) << "[#" << as << "] " << _levelNames[level] << ":" << _topicNames[topic] << " -- " ; (*_streams[as].os) << "[#" << as << "] " << _levelNames[level] << ":" << _topicNames[topic] << " -- " ;
} }
...@@ -424,7 +425,7 @@ ostream& RooMsgService::log(const TObject* self, MsgLevel level, MsgTopic topic, ...@@ -424,7 +425,7 @@ ostream& RooMsgService::log(const TObject* self, MsgLevel level, MsgTopic topic,
if (_streams[as].prefix && !skipPrefix) { if (_streams[as].prefix && !skipPrefix) {
if (_showPid) { if (_showPid) {
(*_streams[as].os) << "pid" << getpid() << " " ; (*_streams[as].os) << "pid" << gSystem->GetPid() << " " ;
} }
(*_streams[as].os) << "[#" << as << "] " << _levelNames[level] << ":" << _topicNames[topic] << " -- " ; (*_streams[as].os) << "[#" << as << "] " << _levelNames[level] << ":" << _topicNames[topic] << " -- " ;
} }
......
...@@ -140,7 +140,7 @@ void RooRealMPFE::initialize() { ...@@ -140,7 +140,7 @@ void RooRealMPFE::initialize() {
_pid = fork() ; _pid = fork() ;
if (_pid==0) { if (_pid==0) {
cout << "child getpid = " << getpid() << endl ; cout << "child getpid = " << gSystem->GetPid() << endl ;
// Start server loop // Start server loop
_state = Server ; _state = Server ;
...@@ -153,7 +153,7 @@ void RooRealMPFE::initialize() { ...@@ -153,7 +153,7 @@ void RooRealMPFE::initialize() {
} else if (_pid>0) { } else if (_pid>0) {
cout << "parent getpid = " << getpid() << endl ; cout << "parent getpid = " << gSystem->GetPid() << endl ;
// Client process - fork successul // Client process - fork successul
cout << "RooRealMPFE::initialize(" << GetName() cout << "RooRealMPFE::initialize(" << GetName()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment