summaryrefslogtreecommitdiff
path: root/source3/lib/fncall.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-12-21 20:38:32 -0800
committerJeremy Allison <jra@samba.org>2011-12-22 12:12:33 +0100
commit711c18c2301d1bea35cac1144080a94e6b89be27 (patch)
tree0ead0dba686289a6a6ffb92a58d9120d8d97deb3 /source3/lib/fncall.c
parent8303d163cf34d0b61bfbbc62e497f7b444a17e10 (diff)
downloadsamba-711c18c2301d1bea35cac1144080a94e6b89be27.tar.gz
samba-711c18c2301d1bea35cac1144080a94e6b89be27.tar.bz2
samba-711c18c2301d1bea35cac1144080a94e6b89be27.zip
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 <jra@samba.org> Autobuild-Date: Thu Dec 22 12:12:33 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/lib/fncall.c')
-rw-r--r--source3/lib/fncall.c3
1 files changed, 1 insertions, 2 deletions
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;
}