summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_aio_fork.c
diff options
context:
space:
mode:
authorChristian Ambach <christian.ambach@de.ibm.com>2011-02-23 11:10:15 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-28 14:53:20 +0100
commit3854413c246a3a69d100af6e827ce8f217bf408e (patch)
tree1ed042fb740c19ef6f1ea1250e967ab9e1b453c5 /source3/modules/vfs_aio_fork.c
parent58081884f76ecd902e407a2cb24ab36261d2a507 (diff)
downloadsamba-3854413c246a3a69d100af6e827ce8f217bf408e.tar.gz
samba-3854413c246a3a69d100af6e827ce8f217bf408e.tar.bz2
samba-3854413c246a3a69d100af6e827ce8f217bf408e.zip
s3: Survive an idle child that was killed
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Feb 28 14:53:20 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/modules/vfs_aio_fork.c')
-rw-r--r--source3/modules/vfs_aio_fork.c6
1 files changed, 6 insertions, 0 deletions
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;