From cffcb777260be833d6135183395b6b018ce632f4 Mon Sep 17 00:00:00 2001 From: lqdev Date: Wed, 2 Jun 2021 17:27:40 +0200 Subject: [PATCH] ignore SIGPIPE from subprocesses spawned with reproc --- .gitignore | 1 + src/main.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 24b465ce..6a26aa12 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ subprojects/lua subprojects/libagg subprojects/reproc lite +error.txt diff --git a/src/main.c b/src/main.c index b0eb50d6..435c15fa 100644 --- a/src/main.c +++ b/src/main.c @@ -12,6 +12,7 @@ #include #include #include + #include #elif __APPLE__ #include #endif @@ -106,6 +107,8 @@ int main(int argc, char **argv) { HINSTANCE lib = LoadLibrary("user32.dll"); int (*SetProcessDPIAware)() = (void*) GetProcAddress(lib, "SetProcessDPIAware"); SetProcessDPIAware(); +#else + signal(SIGPIPE, SIG_IGN); #endif SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS);