diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-06-19 14:04:12 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-06-26 11:07:41 -0400 |
commit | 43695048b2359962549dc11ce7d075375b7fb3cf (patch) | |
tree | 4ff39427f7e1ad39b38e9f245c0471ffc0f16e25 /src | |
parent | cf0b52c7c29fe4917b9e50776fa79a85a952b735 (diff) | |
download | mongo-43695048b2359962549dc11ce7d075375b7fb3cf.tar.gz |
SERVER-34160 Exit shell cleanly on SIGHUP
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/shell/dbshell.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/shell/dbshell.cpp b/src/mongo/shell/dbshell.cpp index 964e70e18b6..5e24c905c4f 100644 --- a/src/mongo/shell/dbshell.cpp +++ b/src/mongo/shell/dbshell.cpp @@ -220,6 +220,9 @@ char* shellReadline(const char* prompt, int handlesigint = 0) { } void setupSignals() { +#ifndef _WIN32 + signal(SIGHUP, quitNicely); +#endif signal(SIGINT, quitNicely); } |