From owner-cvs-all@FreeBSD.ORG Tue Feb 27 17:35:01 2007 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EFB3516A400; Tue, 27 Feb 2007 17:35:00 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 9575013C474; Tue, 27 Feb 2007 17:35:00 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l1RHYtfE051949; Tue, 27 Feb 2007 12:34:56 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Kostik Belousov Date: Tue, 27 Feb 2007 11:53:22 -0500 User-Agent: KMail/1.9.1 References: <200702270251.l1R2pfaT072096@repoman.freebsd.org> <20070227113338.GA30955@deviant.kiev.zoral.com.ua> In-Reply-To: <20070227113338.GA30955@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702271153.23179.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 27 Feb 2007 12:34:56 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2664/Tue Feb 27 08:11:46 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Greg Lehey , cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/share/man/man9 sleep.9 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 17:35:01 -0000 On Tuesday 27 February 2007 06:33, Kostik Belousov wrote: > On Tue, Feb 27, 2007 at 02:51:41AM +0000, Greg Lehey wrote: > > grog 2007-02-27 02:51:41 UTC > > > > FreeBSD src repository > > > > Modified files: > > share/man/man9 sleep.9 > > Log: > > Add warning about deadlocks created by use of wakeup_one. > > +.Fn wakeup_one > +does not work reliably if more than one process is sleeping on the same > +address; > +in this case it is possible for an unrelated process to be woken. > +This process will ignore the wakeup, and the correct process will never be > +woken. > +.Pp > > Is this a bug (that should be fixed), or some fundamental issue with > wakeup_one() ? I actually think the paragraph is unclear, because in several place where wakeup_one() is used it does indeed work fine when "more than one process (sic) is sleeping on the same address". -- John Baldwin