From: Christian Ambach Date: Thu, 13 Jan 2011 14:59:18 +0000 (+0100) Subject: s3:vfs fix children cleanup in aio_fork X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba-ctdb.git;a=commitdiff_plain;h=ff215e7b1e8b5958914935736b7458817f44ce1f s3:vfs fix children cleanup in aio_fork the cleanup loop in aio_fork always stopped operation on the first inactive child it found. In case lots of children need to be reaped, it will take multiple runs before all children are gone --- diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index 42a0526371..8ee660d7b8 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -245,6 +245,7 @@ static void aio_child_cleanup(struct event_context *event_ctx, "deleting\n", (int)child->pid)); TALLOC_FREE(child); + child = next; } if (list->children != NULL) {