From owner-freebsd-stable@freebsd.org Fri Sep 4 12:30:48 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB4259C9DD8; Fri, 4 Sep 2015 12:30:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 536C7961; Fri, 4 Sep 2015 12:30:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id t84CUac0064199 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 4 Sep 2015 15:30:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua t84CUac0064199 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id t84CUaaj064134; Fri, 4 Sep 2015 15:30:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 4 Sep 2015 15:30:36 +0300 From: Konstantin Belousov To: Erich Dollansky Cc: FreeBSD stable , freebsd-threads@freebsd.org Subject: Re: pthread_cancel / sleep change in behaviour Message-ID: <20150904123036.GH2072@kib.kiev.ua> References: <20150903080047.16be939e@X220.alogt.com> <20150903081947.GB2072@kib.kiev.ua> <20150903183353.2633a38b@X220.alogt.com> <20150903104351.GE2072@kib.kiev.ua> <20150904083740.5f3e49aa@X220.alogt.com> <20150904081857.GF2072@kib.kiev.ua> <20150904163524.0b420a90@X220.alogt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150904163524.0b420a90@X220.alogt.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Sep 2015 12:30:49 -0000 On Fri, Sep 04, 2015 at 04:35:24PM +0800, Erich Dollansky wrote: > Hi,. > > On Fri, 4 Sep 2015 11:18:57 +0300 > Konstantin Belousov wrote: > > > On Fri, Sep 04, 2015 at 08:37:40AM +0800, Erich Dollansky wrote: > > > On Thu, 3 Sep 2015 13:43:51 +0300 > > > > > > and it works there. > > > > > > So, it is just a matter of time until the fix finds its way back to > > > 10? > > Yes, should be several days timeframe. > > this sounds perfect. > > > > > > > > Of course, I do not ignore the signal now in the application > > > anymore. The application then works as expected on 10.2 STABLE. > > Well, the consequence of the bug, which affected you, is that it was > > allowed for the applications to ignore SIGCANCEL. With the bug fixed, > > the signal(SIGCANCEL, anything) becomes nop. > > Was it just me being blind or is the documentation on this a bit > limited? Documentation on what ? SIGCANCEL is non-standard signal, it is not documented because this is internal facility for the threading library. Fiddling with anything without understanding the functionality is not the best idea.