From 711c18c2301d1bea35cac1144080a94e6b89be27 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 21 Dec 2011 20:38:32 -0800 Subject: Change the signature of pthreadpool_finished_job() to return 0 on success, errno on fail and return the jobid in a separate variable. I need this fix for my vfs_aio_pthread.c module. Autobuild-User: Jeremy Allison Autobuild-Date: Thu Dec 22 12:12:33 CET 2011 on sn-devel-104 --- source3/lib/fncall.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/lib/fncall.c') diff --git a/source3/lib/fncall.c b/source3/lib/fncall.c index 6e6b7c9250..79bf8260d9 100644 --- a/source3/lib/fncall.c +++ b/source3/lib/fncall.c @@ -280,8 +280,7 @@ static void fncall_handler(struct tevent_context *ev, struct tevent_fd *fde, int i, num_pending; int job_id; - job_id = pthreadpool_finished_job(ctx->pool); - if (job_id <= 0) { + if (pthreadpool_finished_job(ctx->pool, &job_id) != 0) { return; } -- cgit