summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-02-25 22:51:09 -0500
committerpommicket <pommicket@gmail.com>2023-02-25 22:51:27 -0500
commit946eb60553a459e952096a93f805b1bb62ac11ae (patch)
tree5600cc9aee382dccd49eef8430e1522811aa2f67 /main.c
parent1dbe868e22fe9762d5e32d73167d09a2c5b72821 (diff)
ignore SIGPIPE
fix problem where LSP crashing would cause ted to crash
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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);