From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: busyloop in sigchld_handler Date: Wed, 28 Mar 2007 22:18:21 +0200 Message-ID: References: <87slbpo0pk.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175113177 29731 80.91.229.12 (28 Mar 2007 20:19:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 20:19:37 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 28 22:19:23 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HWec4-0001rD-C5 for ged-emacs-devel@m.gmane.org; Wed, 28 Mar 2007 22:19:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWeeZ-0005Ie-8O for ged-emacs-devel@m.gmane.org; Wed, 28 Mar 2007 15:21:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWeeW-0005IR-0E for emacs-devel@gnu.org; Wed, 28 Mar 2007 16:21:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWeeU-0005IF-Fk for emacs-devel@gnu.org; Wed, 28 Mar 2007 16:21:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWeeU-0005IC-AP for emacs-devel@gnu.org; Wed, 28 Mar 2007 15:21:50 -0500 Original-Received: from pfepb.post.tele.dk ([195.41.46.236]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWeby-000521-KK for emacs-devel@gnu.org; Wed, 28 Mar 2007 16:19:14 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx19.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 32CDDA5002C; Wed, 28 Mar 2007 22:19:07 +0200 (CEST) In-Reply-To: (Andreas Schwab's message of "Wed\, 28 Mar 2007 17\:37\:58 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68726 Archived-At: Andreas Schwab writes: >> The problem is not the loop, but that the first wait3 will take >> "forever" without the preceding sleep. > > If wait3 would block here then it would be a serious kernel bug, or > someone is defining WNOHANG to 0. This is observed with Linux 2.4 and 2.6 kernels -- so maybe it could be conditioned with GNU_LINUX...? -- Kim F. Storm http://www.cua.dk