--------------------- PatchSet 1153 Date: 2005/01/01 18:59:13 Author: serassio Branch: nt Tag: (none) Log: /dev/null is not available on Windows Members: src/unlinkd.cc:1.7.2.3->1.7.2.4 Index: squid3/src/unlinkd.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/unlinkd.cc,v retrieving revision 1.7.2.3 retrieving revision 1.7.2.4 diff -u -r1.7.2.3 -r1.7.2.4 --- squid3/src/unlinkd.cc 22 Apr 2003 19:16:26 -0000 1.7.2.3 +++ squid3/src/unlinkd.cc 1 Jan 2005 18:59:13 -0000 1.7.2.4 @@ -1,6 +1,6 @@ /* - * $Id: unlinkd.cc,v 1.7.2.3 2003/04/22 19:16:26 serassio Exp $ + * $Id: unlinkd.cc,v 1.7.2.4 2005/01/01 18:59:13 serassio Exp $ * * DEBUG: section 2 Unlink Daemon * AUTHOR: Duane Wessels @@ -51,7 +51,9 @@ 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')))