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, 11 Mar 2007 18:21:42 -0400 Message-ID: References: Reply-To: sds@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1173651736 13544 80.91.229.12 (11 Mar 2007 22:22:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Mar 2007 22:22:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 11 23:22:09 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 1HQWQZ-0005eq-DE for ged-emacs-devel@m.gmane.org; Sun, 11 Mar 2007 23:22:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQWR8-00020U-9U for ged-emacs-devel@m.gmane.org; Sun, 11 Mar 2007 17:22:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HQWQx-00020I-GE for emacs-devel@gnu.org; Sun, 11 Mar 2007 18:22:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HQWQv-0001zk-7t for emacs-devel@gnu.org; Sun, 11 Mar 2007 18:22:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQWQu-0001zf-Vv for emacs-devel@gnu.org; Sun, 11 Mar 2007 17:22:29 -0500 Original-Received: from mta5.srv.hcvlny.cv.net ([167.206.4.200]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HQWQB-0001Cw-Jd; Sun, 11 Mar 2007 18:21:43 -0400 Original-Received: from loiso.podval.org (ool-182f780f.dyn.optonline.net [24.47.120.15]) by mta5.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTP id <0JER00543FG644E0@mta5.srv.hcvlny.cv.net>; Sun, 11 Mar 2007 18:21:43 -0400 (EDT) Original-Received: by loiso.podval.org (Postfix, from userid 500) id 7D93E21E055; Sun, 11 Mar 2007 18:21:42 -0400 (EDT) In-reply-to: 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.95 (gnu/linux) X-detected-kernel: Solaris 10 (beta) 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:67749 Archived-At: > * Eli Zaretskii [2007-03-11 23:51:57 +0200]: > >> Date: Sun, 11 Mar 2007 17:17:05 -0400 >> From: Sam Steingold >> Cc: emacs-devel@gnu.org >> >> > * Eli Zaretskii [2007-03-11 23:14:01 +0200]: >> > >> >> From: Sam Steingold >> >> Date: Sun, 11 Mar 2007 17:06:07 -0400 >> >> >> >> > But can you explain why it works? >> >> >> >> wait3 is a system call, which, when invoked in a loop, prevents the >> >> kernel from doing anything else (in this case, sending SIGCHLD to >> >> emacs). sleep allows the kernel some time to pass the signal. >> > >> > So how portable is this trick? >> >> sleep is in POSIX. > > Obviously, that's not what I asked. I asked how portable is the > behavior of the kernel that you described in the cited text. Sorry. I observe the lossage only on linux. OTOH, linux is all I have access to. -- Sam Steingold (http://sds.podval.org/) on Fedora Core release 6 (Zod) http://honestreporting.com http://thereligionofpeace.com http://truepeace.org http://iris.org.il http://jihadwatch.org http://ffii.org I don't want to be young again, I just don't want to get any older.