This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: pthread_mutex_destroy receives EINTR
- From: Bert Wesarg <bert dot wesarg at googlemail dot com>
- To: Liu Xin <Liu dot Xin at fujixerox dot co dot jp>
- Cc: libc-help at sourceware dot org
- Date: Tue, 4 Aug 2009 11:10:21 +0200
- Subject: Re: pthread_mutex_destroy receives EINTR
- References: <4A77BA65.1090303@fujixerox.co.jp>
On Tue, Aug 4, 2009 at 06:34, Liu Xin<Liu.Xin@fujixerox.co.jp> wrote:
> hi,list,
>
> man page says pthread_mutex_destroy should never return errno code of EINTR.
>
> in my use case, i did kill a thread by signal and then called
> pthread_mutex_destroy to get gid of a mutex. it did fail where errno ==
> EINTR.
> is the behavior right? because the killed thread has no interfere with then
> mutex.
What is the value of errno before the call to pthread_mutex_destroy()?
Bert
>
> i expect people here can help me destroy the mutex in right manner.
>
> glibc 2.6
> kernel 2.6.23
> fedora7
>
> thanks,
> --lx
>
>
>