diff options
-rw-r--r-- | src/mongo/db/db.cpp | 1 | ||||
-rw-r--r-- | src/mongo/s/server.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/db.cpp b/src/mongo/db/db.cpp index 29d470f39e0..c04d2afb1e1 100644 --- a/src/mongo/db/db.cpp +++ b/src/mongo/db/db.cpp @@ -1438,6 +1438,7 @@ namespace mongo { sigaddset( &asyncSignals, SIGINT ); sigaddset( &asyncSignals, SIGTERM ); sigaddset( &asyncSignals, SIGUSR1 ); + sigaddset( &asyncSignals, SIGXCPU ); set_terminate( myterminate ); set_new_handler( my_new_handler ); diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index e6aa728d7a3..5bcfe291519 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -197,6 +197,9 @@ namespace mongo { signal(SIGTERM, sighandler); signal(SIGINT, sighandler); +#if defined(SIGXCPU) + signal(SIGXCPU, sighandler); +#endif #if defined(SIGQUIT) signal( SIGQUIT , printStackAndExit ); |