From: serassio <> Date: Sun, 6 Nov 2005 18:16:22 +0000 (+0000) Subject: Windows port: X-Git-Tag: SQUID_3_0_PRE4~540 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c24dd7fa3e4c1392a9f5cd1597d8d93af2e9bded;p=thirdparty%2Fsquid.git Windows port: - On Windows /dev/null is not available --- diff --git a/src/unlinkd.cc b/src/unlinkd.cc index cb78da6acd..a9ea7ab9ce 100644 --- a/src/unlinkd.cc +++ b/src/unlinkd.cc @@ -1,6 +1,6 @@ /* - * $Id: unlinkd.cc,v 1.52 2003/02/21 22:50:12 robertc Exp $ + * $Id: unlinkd.cc,v 1.53 2005/11/06 11:16:22 serassio Exp $ * * DEBUG: section 2 Unlink Daemon * AUTHOR: Duane Wessels @@ -50,7 +50,10 @@ main(int argc, char *argv[]) setbuf(stdin, NULL); setbuf(stdout, NULL); close(2); +#ifndef _SQUID_MSWIN_ + open("/dev/null", O_RDWR); +#endif while (fgets(buf, UNLINK_BUF_LEN, stdin)) { if ((t = strchr(buf, '\n')))