diff options
Diffstat (limited to 'code/sys/sys_unix.c')
-rw-r--r-- | code/sys/sys_unix.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/code/sys/sys_unix.c b/code/sys/sys_unix.c index 13ded33..21d0b57 100644 --- a/code/sys/sys_unix.c +++ b/code/sys/sys_unix.c @@ -24,6 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "../qcommon/qcommon.h" #include "sys_local.h" +#include <signal.h> #include <sys/types.h> #include <sys/stat.h> #include <errno.h> @@ -514,6 +515,18 @@ void Sys_ErrorDialog( const char *error ) /* ============== +Sys_GLimpInit + +Unix specific GL implementation initialisation +============== +*/ +void Sys_GLimpInit( void ) +{ + // NOP +} + +/* +============== Sys_PlatformInit Unix specific initialisation @@ -521,5 +534,9 @@ Unix specific initialisation */ void Sys_PlatformInit( void ) { - // NOP + signal( SIGHUP, Sys_SigHandler ); + signal( SIGQUIT, Sys_SigHandler ); + signal( SIGTRAP, Sys_SigHandler ); + signal( SIGIOT, Sys_SigHandler ); + signal( SIGBUS, Sys_SigHandler ); } |