chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c511e1f
)
admin: Fix premature close in a_bgrelease.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 1 Jan 2007 12:52:32 +0000
(12:52 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 1 Jan 2007 12:52:32 +0000
(12:52 +0000)
The function incorrectly destroys the connection at the release of the
first background job after close; it should wait until they've all
finished.
server/admin.c
patch
|
blob
|
blame
|
history
diff --git
a/server/admin.c
b/server/admin.c
index ca5dc8cffe7ca9ea9041b8098d2df7a902afe1b5..7a932ad1ab8f7955e5ce7509805047358606e90d 100644
(file)
--- a/
server/admin.c
+++ b/
server/admin.c
@@
-641,7
+641,7
@@
static void a_bgrelease(admin_bgop *bg)
if (bg->prev) bg->prev->next = bg->next;
else a->bg = bg->next;
xfree(bg);
- if (
a->f & AF_CLOSE
) a_destroy(a);
+ if (
!a->bg && (a->f & AF_CLOSE)
) a_destroy(a);
}
/* --- @a_bgok@, @a_bginfo@, @a_bgfail@ --- *