summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeir Magnusson Jr <geir@geir-magnusson-jrs-mac-pro.local>2008-04-30 09:13:19 -0400
committerGeir Magnusson Jr <geir@geir-magnusson-jrs-mac-pro.local>2008-04-30 09:13:19 -0400
commit29962eaf8166dfa7271667a8434c3e99017e11a4 (patch)
tree2ba8479613d1f5e5793942ea391323bc5334cc04
parentbd7abd981b6a034bfa664df1fea3275b17b1e5cc (diff)
downloadmongo-29962eaf8166dfa7271667a8434c3e99017e11a4.tar.gz
add the pid to the startup output to make it clear which process we are
-rw-r--r--db/db.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/db/db.cpp b/db/db.cpp
index 72732199dc9..a1c2ebb3d73 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -620,8 +620,10 @@ void initAndListen(int listenPort, const char *dbPath) {
dbpath = dbPath;
- cout << "10Gen DB : starting : port = " << port << " dbpath = " << dbpath << endl;
- problem() << "10Gen DB : starting : port = " << port << " dbpath = " << dbpath << endl;
+ pid_t pid = getpid();
+
+ cout << "10Gen DB : starting : pid = " << pid << " port = " << port << " dbpath = " << dbpath << endl;
+ problem() << "10Gen DB : starting : pid = " << pid << " port = " << port << " dbpath = " << dbpath << endl;
JavaJS = new JavaJSImpl();
javajstest();