aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mongoclock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongoclock.c b/src/mongoclock.c
index 781b7b4..8ff3676 100644
--- a/src/mongoclock.c
+++ b/src/mongoclock.c
@@ -237,6 +237,10 @@ int main(int argc, char* argv[])
signal(SIGQUIT, sigterm);
signal(SIGINT, sigterm);
signal(SIGWINCH, sigwinch);
+ siginterrupt(SIGTERM, 1);
+ siginterrupt(SIGQUIT, 1);
+ siginterrupt(SIGINT, 1);
+ siginterrupt(SIGWINCH, 1);
while (!caught_sigterm)
{