Re: [PATCH] Use right lock release in __register_exitproc()

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <YoP4oeXb8y8Dy/[email protected]>
On May 17 19:04, Sebastian Huber wrote:
> ---
>  newlib/libc/stdlib/__atexit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/newlib/libc/stdlib/__atexit.c b/newlib/libc/stdlib/__atexit.c
> index 04bdf194e..e59f04c2e 100644
> --- a/newlib/libc/stdlib/__atexit.c
> +++ b/newlib/libc/stdlib/__atexit.c
> @@ -128,7 +128,7 @@ __register_exitproc (int type,
>  	  if (args == NULL)
>  	    {
>  #ifndef __SINGLE_THREAD__
> -	      __lock_release(__atexit_recursive_mutex);
> +	      __lock_release_recursive(__atexit_recursive_mutex);
>  #endif
>  	      return -1;
>  	    }
> -- 
> 2.35.3

Yeah, that looks wrong to me, either. Fortunately it had no negative
impact on Cygwin. Thanks for catching, please push.


Corinna
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.