This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCTH 0/2] pthread_mutexattr_setrobust() and pthread_mutex_consistent()
- From: "Michael Kerrisk (man-pages)" <mtk dot manpages at gmail dot com>
- To: Yubin Ruan <ablacktshirt at gmail dot com>
- Cc: mtk dot manpages at gmail dot com, linux-man at vger dot kernel dot org, libc-alpha at sourceware dot org
- Date: Tue, 12 Sep 2017 14:41:29 +0200
- Subject: Re: [PATCTH 0/2] pthread_mutexattr_setrobust() and pthread_mutex_consistent()
- Authentication-results: sourceware.org; auth=none
- References: <CAJYFCiMZN09HaHpvKgxz3mqzmcaXAWmkz=BmgOW9WVdRKOhDsg@mail.gmail.com> <36ab9ec0-b496-c007-c12f-065fd618e7fd@gmail.com> <CAJYFCiPM6Hy1cPF2mUBu5bVqxNX+5kvKnJZLhYzMMwuMiHCKeg@mail.gmail.com> <20170826210528.GA32472@HP.internal.baidu.com>
Hello Yubin,
[...]
> +.B PTHREAD_MUTEX_ROBUST
> +can be set on a mutex attribute object so that when the owner of the mutex
> +dies or when the process containing such a locked mutex performs
> +.IR execve (2)
> +, any future attempts to call
> +.IR pthread_mutex_lock (3)
> +on this mutex will suceed and return
> +.B EOWNERDEAD
> +to indicate that the original owner no longer exists and the mutex is left in
> +an inconsistent state.
How did you verify the point regarding execve(2)? I don't see this
detailed mentioned in the standards or in the glibc source.
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/