summaryrefslogtreecommitdiff
path: root/src/mongo/db/instance.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-04-01 18:11:43 -0400
committerMathias Stearn <mathias@10gen.com>2014-04-01 19:39:09 -0400
commitad91eb0f75f39c1bb71b5e0ca4279b883cb9fe8d (patch)
tree8360c99e546844d752492e1afc73e9c1e5757350 /src/mongo/db/instance.cpp
parent11e43325fa2b0139df1eb9c367b984a5b112dbb4 (diff)
downloadmongo-ad91eb0f75f39c1bb71b5e0ca4279b883cb9fe8d.tar.gz
SERVER-13429 unify signal handling between mongos and mongod
Diffstat (limited to 'src/mongo/db/instance.cpp')
-rw-r--r--src/mongo/db/instance.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp
index f9e918b540a..f1c903c711a 100644
--- a/src/mongo/db/instance.cpp
+++ b/src/mongo/db/instance.cpp
@@ -331,10 +331,11 @@ namespace mongo {
return ok;
}
+ // Mongod on win32 defines a value for this function. In all other executables it is NULL.
void (*reportEventToSystem)(const char *msg) = 0;
- void mongoAbort(const char *msg) {
- if( reportEventToSystem )
+ void mongoAbort(const char *msg) {
+ if( reportEventToSystem )
reportEventToSystem(msg);
severe() << msg;
::abort();