From 6991ac8c70869ca19a87cfc173e280cab7ff20d0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 10 Aug 2020 14:33:20 +0200 Subject: [PATCH] Handle SIGINT Gracefully exit on SIGINT, like we do for SIGTERM. --- sway/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/main.c b/sway/main.c index 57716071..cd03c873 100644 --- a/sway/main.c +++ b/sway/main.c @@ -367,6 +367,7 @@ int main(int argc, char **argv) { // handle SIGTERM signals signal(SIGTERM, sig_handler); + signal(SIGINT, sig_handler); // prevent ipc from crashing sway signal(SIGPIPE, SIG_IGN);