mirror of
https://github.com/swaywm/sway.git
synced 2025-01-14 16:26:23 +01:00
Prevent ipc from crashing sway
This commit is contained in:
parent
2c43bd2ac8
commit
cd0eaf00da
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue