diff --git a/LICENSE b/LICENSE index 3390b30f..9c5c814f 100644 --- a/LICENSE +++ b/LICENSE @@ -4,7 +4,6 @@ copys for each license: - Quake II: GPLv2 - Info-ZIP (unzip): Info-ZIP License -- libexecinfo: New BSD License Parts of other Quake II Clients were included into the source. They covered by the same GPLv2 license as Quake II itself: @@ -431,29 +430,3 @@ freely, subject to the above disclaimer and the following restrictions: =============================================================================== -Copyright (c) 2003 Maxim Sobolev -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -SUCH DAMAGE. - -=============================================================================== - diff --git a/Makefile b/Makefile index ca301fa7..270f301a 100644 --- a/Makefile +++ b/Makefile @@ -297,8 +297,9 @@ CLIENT_OBJS_ := \ src/unix/hunk.o \ src/unix/misc.o \ src/unix/network.o \ + src/unix/signalhandler.o \ src/unix/system.o \ - src/unix/vid.o + src/unix/vid.o # ---------- @@ -342,8 +343,9 @@ SERVER_OBJS_ := \ src/unix/hunk.o \ src/unix/misc.o \ src/unix/network.o \ + src/unix/signalhandler.o \ src/unix/system.o - + # ---------- # Used by the OpenGL refresher diff --git a/src/common/header/common.h b/src/common/header/common.h index 749b446a..dba65d6d 100644 --- a/src/common/header/common.h +++ b/src/common/header/common.h @@ -39,6 +39,8 @@ #define BUILDSTRING "Linux" #elif defined __FreeBSD__ #define BUILDSTRING "FreeBSD" +#else +#define BUILDSTRING "Unknown" #endif #ifdef __i386__ diff --git a/src/unix/header/unix.h b/src/unix/header/unix.h index dbaba09f..3104593a 100644 --- a/src/unix/header/unix.h +++ b/src/unix/header/unix.h @@ -41,5 +41,7 @@ typedef struct in_state int *in_speed_state; } in_state_t; +void registerHandler(void); + #endif diff --git a/src/unix/misc.c b/src/unix/misc.c index 96edcc5b..79a9ca91 100644 --- a/src/unix/misc.c +++ b/src/unix/misc.c @@ -31,6 +31,7 @@ #include #include "../common/header/common.h" +#include "header/unix.h" cvar_t *nostdout; uid_t saved_euid; @@ -54,6 +55,9 @@ main ( int argc, char **argv ) { int time, oldtime, newtime; + /* register signal handler */ + registerHandler(); + /* go back to real user for config loads */ saved_euid = geteuid(); seteuid( getuid() );