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/idra/samba.git/?a=commitdiff_plain;h=fa07208cee41b51d68144e2fe14d274fdb8f4873;p=idra%2Fsamba.git 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 90d06b10c16..fc5b7f19413 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -246,6 +246,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) {