From 0e0550d845cc81041fd992bd677a3f5fe4ec616e Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Mon, 19 Oct 2009 11:52:53 +0000 Subject: Install SIGUSR1 handler that causes logfiles to be reopened just like SIGHUP does, but without requiring the server to be run with ‘+set sys_console 0’. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/sys_unix.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/sys_unix.c') diff --git a/source/sys_unix.c b/source/sys_unix.c index 6a3a9c3..f700c59 100644 --- a/source/sys_unix.c +++ b/source/sys_unix.c @@ -667,6 +667,7 @@ void Sys_Init( void ) { signal( SIGINT, term_handler ); signal( SIGTTIN, SIG_IGN ); signal( SIGTTOU, SIG_IGN ); + signal( SIGUSR1, hup_handler ); // basedir // allows the game to run from outside the data tree -- cgit v1.2.3