mirror of
https://github.com/apache/httpd.git
synced 2025-08-20 16:09:55 +00:00
Arrange the slotmem chain logic in attach() too.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@791448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -372,15 +372,20 @@ static apr_status_t slotmem_attach(ap_slotmem_instance_t **new,
|
||||
}
|
||||
|
||||
/* first try to attach to existing slotmem */
|
||||
while (next) {
|
||||
if (strcmp(next->name, fname) == 0) {
|
||||
/* we already have it */
|
||||
*new = next;
|
||||
*item_size = next->desc.size;
|
||||
*item_num = next->desc.num;
|
||||
return APR_SUCCESS;
|
||||
if (next) {
|
||||
for (;;) {
|
||||
if (strcmp(next->name, fname) == 0) {
|
||||
/* we already have it */
|
||||
*new = next;
|
||||
*item_size = next->desc.size;
|
||||
*item_num = next->desc.num;
|
||||
return APR_SUCCESS;
|
||||
}
|
||||
if (!next->next) {
|
||||
break;
|
||||
}
|
||||
next = next->next;
|
||||
}
|
||||
next = next->next;
|
||||
}
|
||||
|
||||
/* first try to attach to existing shared memory */
|
||||
|
Reference in New Issue
Block a user