git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1004218
)
s3: Save errno around a TALLOC_FREE
author
Volker Lendecke
<vl@samba.org>
Mon, 11 Jun 2012 09:00:27 +0000
(11:00 +0200)
committer
Jeremy Allison
<jra@samba.org>
Mon, 11 Jun 2012 21:54:37 +0000
(14:54 -0700)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_aio_fork.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_aio_fork.c
b/source3/modules/vfs_aio_fork.c
index f68befbf31e4d6d83b2a261fb512dc314c8f2c11..cc13a9bd1cd7cee5d0f7015d337fcdf1b6b187e4 100644
(file)
--- a/
source3/modules/vfs_aio_fork.c
+++ b/
source3/modules/vfs_aio_fork.c
@@
-794,6
+794,7
@@
static int aio_fork_suspend(struct vfs_handle_struct *handle,
int i;
int ret = -1;
bool timed_out = false;
+ int err;
children = init_aio_children(handle);
if (children == NULL) {
@@
-885,7
+886,9
@@
static int aio_fork_suspend(struct vfs_handle_struct *handle,
out:
+ err = errno;
TALLOC_FREE(frame);
+ errno = err;
return ret;
}