mirror of
https://github.com/samba-team/samba.git
synced 2025-09-17 05:44:20 +03:00
Revert "pthreadpool: ignore the return value of poll(NULL, 0UL, 1)"
This reverts commit 6da0d68f49
.
See the discussion in
https://lists.samba.org/archive/samba-technical/2018-December/131731.html
for the reasoning behind this revert.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Stefan Metzmacher
parent
57c7aaa36d
commit
a75f5de15d
@@ -873,7 +873,7 @@ static void pthreadpool_tevent_job_orphan(struct pthreadpool_tevent_job *job)
|
||||
*/
|
||||
PTHREAD_TEVENT_JOB_THREAD_FENCE(job);
|
||||
while (job->needs_fence.wrapper) {
|
||||
(void)poll(NULL, 0, 1);
|
||||
poll(NULL, 0, 1);
|
||||
PTHREAD_TEVENT_JOB_THREAD_FENCE(job);
|
||||
}
|
||||
job->wrapper = NULL;
|
||||
@@ -903,7 +903,7 @@ static void pthreadpool_tevent_job_orphan(struct pthreadpool_tevent_job *job)
|
||||
if (job->needs_fence.signaled) {
|
||||
break;
|
||||
}
|
||||
(void)poll(NULL, 0, 1);
|
||||
poll(NULL, 0, 1);
|
||||
PTHREAD_TEVENT_JOB_THREAD_FENCE(job);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user