/*
- * $Id: WinSvc.cc,v 1.3.6.1 2008/02/17 11:37:52 serassio Exp $
+ * $Id: WinSvc.cc,v 1.3.6.2 2008/02/17 19:44:01 serassio Exp $
*
* Windows support
* AUTHOR: Guido Serassio <serassio@squid-cache.org>
freopen(stderr_path, "w", stderr);
setmode(fileno(stderr), O_TEXT);
WIN32_run_mode = _WIN_SQUID_RUN_MODE_SERVICE;
- opt_no_daemon = 1;
if (!(c=strchr(argv[1],':'))) {
fprintf(stderr, "Bad Service Parameter: %s\n", argv[1]);
/*
- * $Id: ipc_win32.cc,v 1.4 2007/04/30 16:56:09 wessels Exp $
+ * $Id: ipc_win32.cc,v 1.4.6.1 2008/02/17 19:44:01 serassio Exp $
*
* DEBUG: section 54 Windows Interprocess Communication
* AUTHOR: Andrey Shorin <tolsty@tushino.com>
debugs(54, 3, "ipcCreate: CHILD accepted new FD " << fd);
comm_close(crfd);
snprintf(buf1, 8191, "%s CHILD socket", prog);
- fd_open(fd, FD_SOCKET, buf1);
+ fdc_open(fd, FD_SOCKET, buf1);
fd_table[fd].flags.ipc = 1;
cwfd = crfd = fd;
} else if (type == IPC_UDP_SOCKET) {
/*
- * $Id: main.cc,v 1.451.4.1 2008/02/17 11:37:52 serassio Exp $
+ * $Id: main.cc,v 1.451.4.2 2008/02/17 19:44:01 serassio Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
#if USE_POLL
#include "comm_poll.h"
#endif
-#if USE_SELECT
-#include "comm_select.h"
-#endif
-#if USE_SELECT_WIN32
+#if defined(USE_SELECT) || defined(USE_SELECT_WIN32)
#include "comm_select.h"
#endif
#include "SquidTime.h"
commPollRegisterWithCacheManager(manager);
#endif
-#ifdef USE_SELECT
+#if defined(USE_SELECT) || defined(USE_SELECT_WIN32)
commSelectRegisterWithCacheManager(manager);
#endif