From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: busyloop in sigchld_handler Date: Sun, 25 Mar 2007 22:02:44 -0400 Organization: disorganization Message-ID: References: Reply-To: sds@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1174874606 30695 80.91.229.12 (26 Mar 2007 02:03:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 02:03:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 04:03:18 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 1HVeYH-0006Iq-9H for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 04:03:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVeaS-0003S9-Ra for ged-emacs-devel@m.gmane.org; Sun, 25 Mar 2007 21:05:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVeaP-0003S4-6Z for emacs-devel@gnu.org; Sun, 25 Mar 2007 22:05:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVeaM-0003Rs-S2 for emacs-devel@gnu.org; Sun, 25 Mar 2007 22:05:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVeaM-0003Rp-KX for emacs-devel@gnu.org; Sun, 25 Mar 2007 21:05:26 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HVeYA-0002L5-3N for emacs-devel@gnu.org; Sun, 25 Mar 2007 22:03:10 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HVeXx-0007XU-VP for emacs-devel@gnu.org; Mon, 26 Mar 2007 04:02:57 +0200 Original-Received: from ool-182f780f.dyn.optonline.net ([24.47.120.15]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Mar 2007 04:02:57 +0200 Original-Received: from sds by ool-182f780f.dyn.optonline.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Mar 2007 04:02:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ool-182f780f.dyn.optonline.net Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) Cancel-Lock: sha1:qEcLwHH65rXSgPbVyLG82A8IFps= 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:68561 Archived-At: > * YAMAMOTO Mitsuharu [2007-03-26 10:47:41 +0900]: > > The following change (without a ChangeLog entry) made operations using > subprocesses really sluggish on Mac OS X. Is it possible to restrict > the workaround to the relevant platforms? sorry - this patch merely reverted another one (which did not merit a ChangeLog entry either :-) how about this? one millisecond is enough to fix my problem - does it fix yours? --- process.c 24 Mar 2007 23:02:12 -0400 1.506 +++ process.c 25 Mar 2007 21:54:24 -0400 @@ -6507,7 +6507,7 @@ loadavg to 5-8(!) for ~10 seconds. See http://thread.gmane.org/gmane.emacs.devel/67722 or http://www.google.com/search?q=busyloop+in+sigchld_handler */ - sleep (1); + usleep (1000); errno = 0; pid = wait3 (&w, WNOHANG | WUNTRACED, 0); } -- Sam Steingold (http://sds.podval.org/) on Fedora Core release 6 (Zod) http://honestreporting.com http://mideasttruth.com http://jihadwatch.org http://camera.org http://ffii.org http://openvotingconsortium.org "Syntactic sugar causes cancer of the semicolon." -Alan Perlis