From 16cbc22a99c0a302d248dc006ac0016042c1e3ec Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 18 Mar 2008 13:20:10 +0100 Subject: Fix bug 5334 I did not test with a zero length file :-) (This used to be commit 7d7a73944c2dcf078f7bc8de65d575f32f9aa851) --- source3/include/async_req.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/include') diff --git a/source3/include/async_req.h b/source3/include/async_req.h index 6df53602b2..fb463d5b9a 100644 --- a/source3/include/async_req.h +++ b/source3/include/async_req.h @@ -74,6 +74,13 @@ void async_req_done(struct async_req *req); */ void async_req_error(struct async_req *req, NTSTATUS status); +/* + * If a request is finished or ends in error even before it has the chance to + * trigger the event loop, post a status. This creates an immediate timed + * event to call the async function if there is any. + */ +bool async_post_status(struct async_req *req, NTSTATUS status); + /* * Convenience helper to easily check alloc failure within a callback. * -- cgit