From 43695048b2359962549dc11ce7d075375b7fb3cf Mon Sep 17 00:00:00 2001 From: Jonathan Reams Date: Tue, 19 Jun 2018 14:04:12 -0400 Subject: SERVER-34160 Exit shell cleanly on SIGHUP --- src/mongo/shell/dbshell.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); } -- cgit v1.2.1