diff options
-rw-r--r-- | source3/modules/vfs_aio_fork.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index f68befbf31..cc13a9bd1c 100644 --- 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; } |