shithub: qk1

Download patch

ref: 1012a3c0ee66d9ebc90ec241ec6a47692fd63484
parent: 191f0d455fbc787c63e31bb58b649dd9d0828bea
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Dec 29 21:18:47 EST 2023

unix: don't signal on pipe broken

--- a/sys_unix.c
+++ b/sys_unix.c
@@ -3,6 +3,7 @@
 #include <time.h>
 #include <errno.h>
 #include <fenv.h>
+#include <signal.h>
 
 char *game;
 int debug;
@@ -142,6 +143,8 @@
 	}
 
 	srand(nanosec() + time(nil));
+
+	signal(SIGPIPE, SIG_IGN);
 
 	paths[1] = strdup(va("%s/.quake", getenv("HOME")));
 	Host_Init(nargs, argv, paths);