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)
committerChristian Ambach <christian.ambach@de.ibm.com>
Mon, 17 Jan 2011 13:12:05 +0000 (14:12 +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 42a0526371566b9fb3fad568b2cb88352bd3793a..8ee660d7b8a6af0de16add6cd8cba6eeafccf01d 100644 (file)
@@ -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) {