shithub: choc

Download patch

ref: 4349ec74e0020fca556535d91ac71c961cf25313
parent: d67668fa89df6e748a4c2d31614e2f1be324c470
author: Simon Howard <[email protected]>
date: Wed Sep 7 18:58:34 EDT 2005

No SIGHUP on Windows

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 89

--- 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 @@
     signal(SIGINT, SignalHandler);
     signal(SIGFPE, SignalHandler);
     signal(SIGABRT, SignalHandler);
+#ifdef SIGHUP
     signal(SIGHUP, SignalHandler);
+#endif
 #ifdef SIGPIPE
     signal(SIGHUP, SignalHandler);
 #endif