mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
065fb5d94d
When an error is returned to the caller of pthreadpool_add_job, the job should not be kept in the internal job array. Otherwise the caller might free the data structure and a later worker thread would still reference it. When it is not possible to create a single worker thread, the system might be out of resources or hitting a configured limit. In this case fall back to calling the job function synchronously instead of raising the error to the caller and possibly back to the SMB client. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13170 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> |
||
---|---|---|
.. | ||
Makefile | ||
pthreadpool_pipe.c | ||
pthreadpool_pipe.h | ||
pthreadpool_sync.c | ||
pthreadpool_tevent.c | ||
pthreadpool_tevent.h | ||
pthreadpool.c | ||
pthreadpool.h | ||
tests.c | ||
wscript_build |