From f5c17d41e085e083ef970692ff7f50f7a6642ea3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 8 Nov 2014 09:00:31 +0000 Subject: lib: Add tevent_req_simple_recv_unix Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- lib/util/tevent_unix.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/util/tevent_unix.c') diff --git a/lib/util/tevent_unix.c b/lib/util/tevent_unix.c index e4c960e4d3..ee7ec8a6fe 100644 --- a/lib/util/tevent_unix.c +++ b/lib/util/tevent_unix.c @@ -48,3 +48,16 @@ bool tevent_req_is_unix_error(struct tevent_req *req, int *perrno) } return true; } + +int tevent_req_simple_recv_unix(struct tevent_req *req) +{ + int err = 0; + + /* + * Ignore result of tevent_req_is_unix_error, we're only interested in + * the status + */ + tevent_req_is_unix_error(req, &err); + tevent_req_received(req); + return err; +} -- cgit