void
HelperServerBase::closePipesSafely()
{
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
int no = index + 1;
shutdown(writePipe->fd, SD_BOTH);
readPipe->close();
writePipe->close();
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
if (hIpc) {
if (WaitForSingleObject(hIpc, 5000) != WAIT_OBJECT_0) {
getCurrentTime();
- debugs(84, DBG_IMPORTANT, "WARNING: " << hlp->id_name <<
- " #" << no << " (" << hlp->cmdline->key << "," <<
- (long int)pid << ") didn't exit in 5 seconds");
+ debugs(84, DBG_IMPORTANT, "WARNING: helper PID " <<
+ (long int)pid << " (#" << no
+ << ") didn't exit in 5 seconds");
}
CloseHandle(hIpc);
}
void
HelperServerBase::closeWritePipeSafely()
{
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
int no = index + 1;
shutdown(writePipe->fd, (readPipe->fd == writePipe->fd ? SD_BOTH : SD_SEND));
readPipe->fd = -1;
writePipe->close();
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
if (hIpc) {
if (WaitForSingleObject(hIpc, 5000) != WAIT_OBJECT_0) {
getCurrentTime();
- debugs(84, DBG_IMPORTANT, "WARNING: " << hlp->id_name <<
- " #" << no << " (" << hlp->cmdline->key << "," <<
- (long int)pid << ") didn't exit in 5 seconds");
+ debugs(84, DBG_IMPORTANT, "WARNING: helper PID " <<
+ (long int)pid << " (#" << no
+ << ") didn't exit in 5 seconds");
}
CloseHandle(hIpc);
}