]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: remove obsolete break from command line functionality
authorserassio <>
Thu, 14 Sep 2006 00:55:10 +0000 (00:55 +0000)
committerserassio <>
Thu, 14 Sep 2006 00:55:10 +0000 (00:55 +0000)
src/globals.h
src/main.cc
src/tools.cc

index f8b0da85d2e0862f89996cc7e70d162e93e701fb..9a58646f6b1748bfba5342c910e2f5e53eff7c26 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: globals.h,v 1.138 2006/08/21 00:50:41 robertc Exp $
+ * $Id: globals.h,v 1.139 2006/09/13 18:55:10 serassio Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -171,10 +171,6 @@ extern "C"
     extern char *WIN32_Command_Line;        /* NULL */
     extern char *WIN32_Service_Command_Line; /* NULL */
     extern unsigned int WIN32_run_mode;     /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
-#if defined(_SQUID_MSWIN_) && defined(_DEBUG)
-
-    extern int do_debug_trap;                  /* 0 */
-#endif
 #endif
 #if HAVE_SBRK
 
index fbaa592aaf25890b8794b6827eaf0b551a880ecd..c44c97243124ea8b15cb8265ba1d6c71bbf5a9a9 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.435 2006/09/03 05:32:53 hno Exp $
+ * $Id: main.cc,v 1.436 2006/09/13 18:55:10 serassio Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -167,13 +167,6 @@ SignalDispatcher::dispatch()
     if (do_reconfigure) {
         mainReconfigure();
         do_reconfigure = 0;
-#if defined(_SQUID_MSWIN_) && defined(_DEBUG)
-
-    } else if (do_debug_trap) {
-        do_debug_trap = 0;
-        __asm int 3;
-#endif
-
     } else if (do_rotate) {
         mainRotate();
         do_rotate = 0;
index b3faeb55ae11032b86c43c0567ab53328789fd01..30fffb534631b69eb3256df9f61012239c6d9ae6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.270 2006/09/03 21:05:20 hno Exp $
+ * $Id: tools.cc,v 1.271 2006/09/13 18:55:10 serassio Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -391,11 +391,6 @@ death(int sig)
 void
 sigusr2_handle(int sig)
 {
-#if defined(_SQUID_MSWIN_) && defined(_DEBUG)
-    do_debug_trap = 1;
-#endif
-#if (defined(_SQUID_MSWIN_) && !defined(_DEBUG)) || !defined(_SQUID_MSWIN_)
-
     static int state = 0;
     /* no debug() here; bad things happen if the signal is delivered during _db_print() */
 
@@ -419,7 +414,6 @@ sigusr2_handle(int sig)
         state = 0;
     }
 
-#endif
 #if !HAVE_SIGACTION
     if (signal(sig, sigusr2_handle) == SIG_ERR)        /* reinstall */
         debug(50, 0) ("signal: sig=%d func=%p: %s\n", sig, sigusr2_handle, xstrerror());