From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: busyloop in sigchld_handler Date: Sun, 11 Mar 2007 23:14:01 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1173647647 26711 80.91.229.12 (11 Mar 2007 21:14:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Mar 2007 21:14:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: sds@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 11 22:14:01 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 1HQVMe-0001E9-R3 for ged-emacs-devel@m.gmane.org; Sun, 11 Mar 2007 22:14:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQVNE-00046M-On for ged-emacs-devel@m.gmane.org; Sun, 11 Mar 2007 16:14:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HQVN4-00046H-Bm for emacs-devel@gnu.org; Sun, 11 Mar 2007 17:14:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HQVN2-000461-U7 for emacs-devel@gnu.org; Sun, 11 Mar 2007 17:14:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQVN2-00045y-Rj for emacs-devel@gnu.org; Sun, 11 Mar 2007 16:14:24 -0500 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HQVMO-0000T6-26; Sun, 11 Mar 2007 17:13:44 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-56-179.inter.net.il [83.130.56.179]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id HJD51680 (AUTH halo1); Sun, 11 Mar 2007 23:13:44 +0200 (IST) In-reply-to: (message from Sam Steingold on Sun, 11 Mar 2007 17:06:07 -0400) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:67739 Archived-At: > 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?