aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrondog <crondog@gmail.com>2016-01-22 12:29:18 +1100
committercrondog <crondog@gmail.com>2016-01-22 12:29:18 +1100
commitcd0eaf00dabf1e699d7c66faed12bac4e7115c29 (patch)
treec1b418abae00d5c27dc222c67613e0f669e5ec86
parent2c43bd2ac8cd24534c2743419454db5476ab9456 (diff)
Prevent ipc from crashing sway
-rw-r--r--sway/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index bec6a725..db2ed856 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -187,6 +187,9 @@ int main(int argc, char **argv) {
// handle SIGTERM signals
signal(SIGTERM, sig_handler);
+ // prevent ipc from crashing sway
+ signal(SIGPIPE, SIG_IGN);
+
#if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE
sway_log(L_INFO, "Starting sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH);
#endif