From: Theo Buehler Subject: Re: rpki-client: add error checks for pthread_* calls To: Job Snijders Cc: tech@openbsd.org Date: Fri, 20 Jun 2025 16:05:51 +0200 On Fri, Jun 20, 2025 at 02:00:07PM +0000, Job Snijders wrote: > On Fri, Jun 20, 2025 at 03:51:42PM +0200, Theo Buehler wrote: > > Also, we seem to be missing a bunch of pthread_*_destroy() calls. > > All the mutexes and condition variables are statically initialized > (using PTHREAD_MUTEX_INITIALIZER & PTHREAD_COND_INITIALIZER), as I > understand it one doesn't need to reset those with pthread_*_destroy(). Well at least in our librthread they allocate the first time they take a lock first lock and we release all other resources.