From 6551885f92823d1da69d8041313aae82ac961c00 Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 17 Mar 2006 22:44:17 +0000 Subject: [PATCH] Attempting to fix daemon issues. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2126 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_linux.c | 1 + engine/server/sv_sys_unix.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/engine/client/sys_linux.c b/engine/client/sys_linux.c index a87c880b8..d82df87fe 100644 --- a/engine/client/sys_linux.c +++ b/engine/client/sys_linux.c @@ -405,6 +405,7 @@ int main (int c, char **v) // static char cwd[1024]; signal(SIGFPE, SIG_IGN); + signal(SIGPIPE, SIG_IGN); memset(&parms, 0, sizeof(parms)); diff --git a/engine/server/sv_sys_unix.c b/engine/server/sv_sys_unix.c index 6b88c231b..ce2cfd5fe 100644 --- a/engine/server/sv_sys_unix.c +++ b/engine/server/sv_sys_unix.c @@ -17,9 +17,11 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include #include #include "qwsvdef.h" + #undef malloc #ifdef NeXT @@ -650,6 +652,7 @@ int main(int argc, char *argv[]) // extern int net_socket; int j; + signal(SIGPIPE, SIG_IGN); tcgetattr(STDIN_FILENO, &orig); changes = orig; @@ -660,6 +663,7 @@ int main(int argc, char *argv[]) parms.argc = com_argc; parms.argv = com_argv; + parms.memsize = 16*1024*1024; j = COM_CheckParm("-mem");