diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-11-06 11:50:50 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-11-06 11:55:10 -0500 |
commit | d393cfcf7fefe99b1ffba05ce6282bb5c97f20fb (patch) | |
tree | 84b862bc52a9c16408277e7d1c85d2638a820182 /src/mongo/util/signal_handlers.cpp | |
parent | 0c9cb0d6d8cc9b4a0121a12d29bf202c8c6e972b (diff) | |
download | mongo-d393cfcf7fefe99b1ffba05ce6282bb5c97f20fb.tar.gz |
SERVER-21010 Fix console Control-C handler on Posix Platforms
Diffstat (limited to 'src/mongo/util/signal_handlers.cpp')
-rw-r--r-- | src/mongo/util/signal_handlers.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/util/signal_handlers.cpp b/src/mongo/util/signal_handlers.cpp index 63df4c2596b..2b0683fbc63 100644 --- a/src/mongo/util/signal_handlers.cpp +++ b/src/mongo/util/signal_handlers.cpp @@ -198,9 +198,7 @@ void setupSignalHandlers() { // interrupt thread, once it is started via startSignalProcessingThread(). sigemptyset(&asyncSignals); sigaddset(&asyncSignals, SIGHUP); - if (!handleControlC) { - sigaddset(&asyncSignals, SIGINT); - } + sigaddset(&asyncSignals, SIGINT); sigaddset(&asyncSignals, SIGTERM); sigaddset(&asyncSignals, SIGUSR1); sigaddset(&asyncSignals, SIGXCPU); |