From 0f2d8996e65b8b26dfdfed299bf87211c65a0d08 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 10 Apr 2009 17:21:33 +1200 Subject: [PATCH] Bug 2518: assertion failed: comm.cc:1519: "F->flags.open" 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/comm.cc b/src/comm.cc index 4e5caef1cc..d0529ba5d0 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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 || reconfiguring) && (!F->flags.open || F->type == FD_FILE)) return; /* The following fails because ipc.c is doing calls to pipe() to create sockets! */ -- 2.47.3