summaryrefslogtreecommitdiff
path: root/src/mongo/shell/dbshell.cpp
diff options
context:
space:
mode:
authorApollon Oikonomopoulos <apoikos@debian.org>2018-12-03 20:45:58 +0200
committerApollon Oikonomopoulos <apoikos@debian.org>2018-12-03 20:45:58 +0200
commit239aabeb53a8dcd45eac7d069e0cb0180b4bc412 (patch)
treec1642d9d026783a026d41a2ae3e1920fa31edb71 /src/mongo/shell/dbshell.cpp
parent3896a4a134ae19f25de14727862898cee19aa2e3 (diff)
New upstream version 3.4.18upstream/3.4.18
Diffstat (limited to 'src/mongo/shell/dbshell.cpp')
-rw-r--r--src/mongo/shell/dbshell.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/shell/dbshell.cpp b/src/mongo/shell/dbshell.cpp
index 90c59f0ee55..30b1ff718f2 100644
--- a/src/mongo/shell/dbshell.cpp
+++ b/src/mongo/shell/dbshell.cpp
@@ -213,6 +213,9 @@ char* shellReadline(const char* prompt, int handlesigint = 0) {
}
void setupSignals() {
+#ifndef _WIN32
+ signal(SIGHUP, quitNicely);
+#endif
signal(SIGINT, quitNicely);
}