From 946eb60553a459e952096a93f805b1bb62ac11ae Mon Sep 17 00:00:00 2001 From: pommicket Date: Sat, 25 Feb 2023 22:51:09 -0500 Subject: ignore SIGPIPE fix problem where LSP crashing would cause ted to crash --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 9c63589..b2af2d4 100644 --- a/main.c +++ b/main.c @@ -299,7 +299,7 @@ int main(int argc, char **argv) { sigaction(SIGFPE, &act, NULL); sigaction(SIGABRT, &act, NULL); sigaction(SIGILL, &act, NULL); - sigaction(SIGPIPE, &act, NULL); + signal(SIGPIPE, SIG_IGN); } #elif _WIN32 SetUnhandledExceptionFilter(error_signal_handler); -- cgit v1.2.3