summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_aio_fork.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-16 11:55:59 +0100
committerVolker Lendecke <vl@samba.org>2008-03-16 11:58:33 +0100
commit5aec3814340696971e05a5f10970bcd4ce3c519b (patch)
tree581769b8e1261c45785efe55499f98ae3574ebe4 /source3/modules/vfs_aio_fork.c
parent2157f67e3809a594d7c8f84c077311f9e6995e37 (diff)
downloadsamba-5aec3814340696971e05a5f10970bcd4ce3c519b.tar.gz
samba-5aec3814340696971e05a5f10970bcd4ce3c519b.tar.bz2
samba-5aec3814340696971e05a5f10970bcd4ce3c519b.zip
Need to close the /dev/zero fd
(This used to be commit c2b2a9303d9c84ba4e059f13de9ccc401d08bd59)
Diffstat (limited to 'source3/modules/vfs_aio_fork.c')
-rw-r--r--source3/modules/vfs_aio_fork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c
index 21f63d0b87..28428f2e49 100644
--- a/source3/modules/vfs_aio_fork.c
+++ b/source3/modules/vfs_aio_fork.c
@@ -56,6 +56,8 @@ static struct mmap_area *mmap_area_init(TALLOC_CTX *mem_ctx, size_t size)
goto fail;
}
+ close(fd);
+
result->size = size;
talloc_set_destructor(result, mmap_area_destructor);