diff options
author | Geir Magnusson Jr <geir@geir-magnusson-jrs-mac-pro.local> | 2008-04-30 09:13:19 -0400 |
---|---|---|
committer | Geir Magnusson Jr <geir@geir-magnusson-jrs-mac-pro.local> | 2008-04-30 09:13:19 -0400 |
commit | 29962eaf8166dfa7271667a8434c3e99017e11a4 (patch) | |
tree | 2ba8479613d1f5e5793942ea391323bc5334cc04 | |
parent | bd7abd981b6a034bfa664df1fea3275b17b1e5cc (diff) | |
download | mongo-29962eaf8166dfa7271667a8434c3e99017e11a4.tar.gz |
add the pid to the startup output to make it clear which process we are
-rw-r--r-- | db/db.cpp | 6 |
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();
|