]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2518: assertion failed: comm.cc:1519: "F->flags.open"
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 Mar 2009 22:29:32 +0000 (11:29 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 Mar 2009 22:29:32 +0000 (11:29 +1300)
Not seen in a while. I suspect its hiding behind a fixed F->closing()
test, so the whole if test may be obsolete.

Applying in order to close the bug with surety and sync the conditions on
shutdown and restart-closing.

src/comm.cc
test-suite/buildtest.sh

index a42c642958c94532abc069bd5e1ff96ada857c38..30fde7b883466dfec9c78dd3dc716bc1d8e94a20 100644 (file)
@@ -1548,7 +1548,8 @@ _comm_close(int fd, char const *file, int line)
     if (F->closing())
         return;
 
-    if (shutting_down && (!F->flags.open || F->type == FD_FILE))
+    /* XXX: is this obsolete behind F->closing() ? */
+    if ( (shutting_down || restarting) && (!F->flags.open || F->type == FD_FILE))
         return;
 
     /* The following fails because ipc.c is doing calls to pipe() to create sockets! */
index 873dbf85b22a428f4c76564903cb1f3b8f6a1903..314bb4b8831eeb84402f926e7c483fec347eb89f 100755 (executable)
@@ -39,7 +39,7 @@ fi
 # do not build any of the install's ...
 rm -f -r src/fs/aufs/.deps src/fs/diskd/.deps &&
        $base/../configure --silent ${OPTS} 2>&1 &&
-       make ${pjobs} check 2>&1 &&
+       make ${pjobs} distcheck 2>&1 &&
        make ${pjobs} 2>&1
 
 # Remember and then explicitly return the result of the last command