Keywords:
These are 2 residual Windows port merge patches:
- main.cc: On Windows signal() can't be used for debugging purpose: added
support for native debug
- comm.cc: On Windows dup2() can't work correctly on Sockets, the work
around is to close the destination socket before call them.
Regards
Guido
/*
- * $Id: comm.cc,v 1.387 2003/08/15 13:06:34 robertc Exp $
+ * $Id: comm.cc,v 1.388 2003/08/31 01:22:05 robertc Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
return 0;
}
+#ifdef _SQUID_MSWIN_
+
+ /* On Windows dup2() can't work correctly on Sockets, the */
+ /* workaround is to close the destination Socket before call them. */
+ close(cs->fd);
+
+#endif
+
if (dup2(fd2, cs->fd) < 0) {
debug(5, 0) ("commResetFD: dup2: %s\n", xstrerror());
/*
- * $Id: main.cc,v 1.386 2003/08/17 13:22:30 robertc Exp $
+ * $Id: main.cc,v 1.387 2003/08/31 01:22:05 robertc Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
if (do_reconfigure) {
mainReconfigure();
do_reconfigure = 0;
+#if defined(_SQUID_MSWIN_) && defined(_DEBUG)
+
+ } else if (do_debug) {
+ do_debug = 0;
+ __asm int 3;
+#endif
+
} else if (do_rotate) {
mainRotate();
do_rotate = 0;