s3:vfs fix children cleanup in aio_fork
authorChristian Ambach <christian.ambach@de.ibm.com>
Thu, 13 Jan 2011 14:59:18 +0000 (15:59 +0100)
committerVolker Lendecke <vlendec@samba.org>
Fri, 14 Jan 2011 08:11:19 +0000 (09:11 +0100)
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

source3/modules/vfs_aio_fork.c

index 90d06b10c166e2da2ebb4a446fd75f034a6a1de7..fc5b7f19413735b0e6509259a67520ebeadecbab 100644 (file)
@@ -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) {