diff --git a/src/main.c b/src/main.c index 64665ea..3b8c2e0 100644 --- a/src/main.c +++ b/src/main.c @@ -638,6 +638,10 @@ static int real_main(int argc, char **argv) sigemptyset(&ss); sigaddset(&ss, SIGUSR2); pthread_sigmask(SIG_BLOCK, &ss, NULL); + + /* Ignore SIGPIPE — Wayland data transfers (DnD, clipboard) + * can trigger broken pipes when clients disconnect. */ + signal(SIGPIPE, SIG_IGN); } setlocale(LC_ALL, "");