diff options
author | Simon Howard | 2005-09-07 22:58:34 +0000 |
---|---|---|
committer | Simon Howard | 2005-09-07 22:58:34 +0000 |
commit | 4349ec74e0020fca556535d91ac71c961cf25313 (patch) | |
tree | 6d2fa1075a85505b82e3175c890b0d1250ba3a58 | |
parent | d67668fa89df6e748a4c2d31614e2f1be324c470 (diff) | |
download | chocolate-doom-4349ec74e0020fca556535d91ac71c961cf25313.tar.gz chocolate-doom-4349ec74e0020fca556535d91ac71c961cf25313.tar.bz2 chocolate-doom-4349ec74e0020fca556535d91ac71c961cf25313.zip |
No SIGHUP on Windows
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 89
-rw-r--r-- | src/i_main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/i_main.c b/src/i_main.c index 6c60ad69..43f171c9 100644 --- a/src/i_main.c +++ b/src/i_main.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: i_main.c 86 2005-09-07 21:40:28Z fraggle $ +// $Id: i_main.c 89 2005-09-07 22:58:34Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,9 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.5 2005/09/07 22:58:34 fraggle +// No SIGHUP on Windows +// // Revision 1.4 2005/09/07 21:40:28 fraggle // Catch signals and exit cleanly // @@ -41,7 +44,7 @@ //----------------------------------------------------------------------------- static const char -rcsid[] = "$Id: i_main.c 86 2005-09-07 21:40:28Z fraggle $"; +rcsid[] = "$Id: i_main.c 89 2005-09-07 22:58:34Z fraggle $"; #include <signal.h> @@ -70,7 +73,9 @@ int main(int argc, char **argv) signal(SIGINT, SignalHandler); signal(SIGFPE, SignalHandler); signal(SIGABRT, SignalHandler); +#ifdef SIGHUP signal(SIGHUP, SignalHandler); +#endif #ifdef SIGPIPE signal(SIGHUP, SignalHandler); #endif |