From 3854413c246a3a69d100af6e827ce8f217bf408e Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Wed, 23 Feb 2011 11:10:15 +0100 Subject: s3: Survive an idle child that was killed Autobuild-User: Volker Lendecke Autobuild-Date: Mon Feb 28 14:53:20 CET 2011 on sn-devel-104 --- source3/modules/vfs_aio_fork.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/modules') diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index 0cea931a6d..4ddc71ee9d 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -407,6 +407,12 @@ static void handle_aio_completion(struct event_context *event_ctx, child->retval.ret_errno = EIO; } + if (child->aiocb == NULL) { + DEBUG(1, ("Inactive child died\n")); + TALLOC_FREE(child); + return; + } + if (child->cancelled) { child->aiocb = NULL; child->cancelled = false; -- cgit