From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31176 invoked by alias); 12 Sep 2017 12:41:38 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 31163 invoked by uid 89); 12 Sep 2017 12:41:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:209.85.128.194, H*RU:209.85.128.194, H*M:7a5f, Hx-languages-length:813 X-HELO: mail-wr0-f194.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5cXdjX7cKmNt9+ZJhnFGiFf2b1k1naxjS/8cthAoF5s=; b=HjJD2wSuofftdrvj2e9Ufrev1q+b7cfXYDXeaztGjdzKYJlvnqBcXvqa0FocTbPOuI uptDWyKGpRHmTMOP4ojd6H86DC4ar6hiVWqSD6oYAG53BwirHqCjP2yDipBqU6uo/YBj ByKeL01gvt0EGoq0xilwDaPrsxbf1h1ILVKHOC+cvCgzkN65cCmOEeiHEKb1rdjeRcYI g6hUe8SJjCKByYy2TyAB1BYlvzv9WIKKaS7ncH0K0kUXdtF5eohaNIT2zEQ42/SmarwJ QUvQx4XIeNbfql137HBPkiCjXk8nA1qjxqVYYlLcIKeROR3IM+ZPojlvEBMVbBjRRwiU 7gNA== X-Gm-Message-State: AHPjjUj2NpdNT+EcwK2aaumSxIfc1gE8rWz4RyHN6XF2544EbjGq4K1p A43s16+mlUJ/cP8N678= X-Google-Smtp-Source: ADKCNb6mNKjCgAHSa+AXI0VpUq2cLrJfzu+Nikih72YRjRsemm2Z0oPiCYI3j0RoXCRlnroPpYA/3A== X-Received: by 10.223.174.141 with SMTP id y13mr11540036wrc.209.1505220093943; Tue, 12 Sep 2017 05:41:33 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, libc-alpha@sourceware.org Subject: Re: [PATCTH 0/2] pthread_mutexattr_setrobust() and pthread_mutex_consistent() To: Yubin Ruan References: <36ab9ec0-b496-c007-c12f-065fd618e7fd@gmail.com> <20170826210528.GA32472@HP.internal.baidu.com> From: "Michael Kerrisk (man-pages)" Message-ID: Date: Tue, 12 Sep 2017 12:41:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170826210528.GA32472@HP.internal.baidu.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-09/txt/msg00492.txt.bz2 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/