diff options
author | Christian Ambach <christian.ambach@de.ibm.com> | 2011-02-23 11:10:15 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-02-28 14:53:20 +0100 |
commit | 3854413c246a3a69d100af6e827ce8f217bf408e (patch) | |
tree | 1ed042fb740c19ef6f1ea1250e967ab9e1b453c5 /source3/modules | |
parent | 58081884f76ecd902e407a2cb24ab36261d2a507 (diff) | |
download | samba-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')
-rw-r--r-- | source3/modules/vfs_aio_fork.c | 6 |
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; |