]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
For unlinkd FD, set the timeout AFTER fd_open().
authorwessels <>
Thu, 1 Jan 1998 12:57:17 +0000 (12:57 +0000)
committerwessels <>
Thu, 1 Jan 1998 12:57:17 +0000 (12:57 +0000)
src/unlinkd.cc

index cb2bc5c72e3b6bda108fa3388adaa58c40eea335..6e2ce664704fcc621e4df8a38c7c51b9b4bae0d2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: unlinkd.cc,v 1.11 1997/11/15 00:14:53 wessels Exp $
+ * $Id: unlinkd.cc,v 1.12 1998/01/01 05:57:17 wessels Exp $
  *
  * DEBUG: section 43    Unlink Daemon
  * AUTHOR: Duane Wessels
@@ -133,11 +133,11 @@ unlinkdCreate(void)
            close(wfd1);
            return -1;
        }
-       commSetTimeout(wfd1, -1, NULL, NULL);
        slp.tv_sec = 0;
        slp.tv_usec = 250000;
        select(0, NULL, NULL, NULL, &slp);
        fd_open(wfd1, FD_PIPE, "squid -> unlinkd");
+       commSetTimeout(wfd1, -1, NULL, NULL);
        commSetNonBlocking(wfd1);
        return wfd1;
     }