Re: [PATCH] Cygwin: pthread: Fix handle leak in pthread_once.

2024-01-24 Thread Corinna Vinschen
On Jan 24 23:48, Takashi Yano wrote: > On Wed, 24 Jan 2024 15:40:22 +0100 > Corinna Vinschen wrote: > > (You don't have to CC me, btw., I only get the same mail twice then > > and I look into this mailing list constantly anyway) > > Perhaps, CC: is added automatically by git send-email if > Review

Re: [PATCH] Cygwin: pthread: Fix handle leak in pthread_once.

2024-01-24 Thread Takashi Yano
On Wed, 24 Jan 2024 15:40:22 +0100 Corinna Vinschen wrote: > (You don't have to CC me, btw., I only get the same mail twice then > and I look into this mailing list constantly anyway) Perhaps, CC: is added automatically by git send-email if Reviewed-by: exists. I'll try --no-cc option next time.

Re: [PATCH] Cygwin: pthread: Fix handle leak in pthread_once.

2024-01-24 Thread Corinna Vinschen
On Jan 24 22:44, Takashi Yano wrote: > If pthread_once() is called with pthread_once_t initialized using > PTREAD_ONCE_INIT, pthread_once does not release pthread_mutex used > internally. This patch fixes that by calling pthread_mutex_destroy() > in the thread which has called init_routine. > > Re

[PATCH] Cygwin: pthread: Fix handle leak in pthread_once.

2024-01-24 Thread Takashi Yano
If pthread_once() is called with pthread_once_t initialized using PTREAD_ONCE_INIT, pthread_once does not release pthread_mutex used internally. This patch fixes that by calling pthread_mutex_destroy() in the thread which has called init_routine. Reviewed-by: Corinna Vinschen Signed-off-by: Takas