diff options
author | Andrey Nazarov <skuller@skuller.net> | 2009-10-19 11:52:53 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2009-10-19 11:52:53 +0000 |
commit | 0e0550d845cc81041fd992bd677a3f5fe4ec616e (patch) | |
tree | d768431838553447ff0664e4f7910b9be6375a04 /source/sys_unix.c | |
parent | e42f7dc5b9b16e68148f2b2e776d1ae081872d76 (diff) |
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’.
Diffstat (limited to 'source/sys_unix.c')
-rw-r--r-- | source/sys_unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <path> // allows the game to run from outside the data tree |