From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: busyloop in sigchld_handler Date: Wed, 14 Mar 2007 11:52:36 +0100 Message-ID: <86fy88w0zv.fsf@lola.quinscape.zz> References: <45F59395.4010708@gnu.org> <45F5A2B4.7090301@gnu.org> <85ejnumf1o.fsf@lola.goethe.zz> <868xe11tzu.fsf@lola.quinscape.zz> <85abyglrbs.fsf@lola.goethe.zz> <85tzwokb4x.fsf@lola.goethe.zz> <86tzwoxq1q.fsf@lola.quinscape.zz> <86odmww3dy.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173869574 24028 80.91.229.12 (14 Mar 2007 10:52:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2007 10:52:54 +0000 (UTC) Cc: Sam Steingold , emacs-devel@gnu.org, "Kim F. Storm" To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 14 11:52:47 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 1HRR67-000342-2R for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2007 11:52:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRR6z-00034m-3y for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2007 05:53:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HRR6v-00034f-JX for emacs-devel@gnu.org; Wed, 14 Mar 2007 06:53:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HRR6s-00034T-7F for emacs-devel@gnu.org; Wed, 14 Mar 2007 06:53:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRR6r-00034Q-WC for emacs-devel@gnu.org; Wed, 14 Mar 2007 05:53:34 -0500 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HRR5z-0007VQ-1y for emacs-devel@gnu.org; Wed, 14 Mar 2007 06:52:39 -0400 Original-Received: from quinscape.de (pd95b0fdb.dip0.t-ipconnect.de [217.91.15.219]) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id LAA15393 for ; Wed, 14 Mar 2007 11:52:35 +0100 X-Delivered-To: Original-Received: (qmail 11699 invoked from network); 14 Mar 2007 10:52:37 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 14 Mar 2007 10:52:37 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id E97CCC34D8; Wed, 14 Mar 2007 11:52:36 +0100 (CET) In-Reply-To: (Andreas Schwab's message of "Wed\, 14 Mar 2007 11\:22\:51 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 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:67919 Archived-At: Andreas Schwab writes: > David Kastrup writes: > >> The signal manpage says: >> >> When a signal occurs, and func points to a function, it is >> implementation-defined whether the equivalent of a: >> >> signal(sig, SIG_DFL); >> >> is executed or the implementation prevents some >> implementation-defined set of signals (at least including >> sig) from occurring until the current signal handling has >> completed. >> >> So even though SIGCHLD may be interrupted by another signal, this does >> not mean that the other signal handler gets a chance to run. > > This is a complete red herring. The Linux kernel (and all XSI compliant > systems) always blocks the invoking signal when a handler is invoked. Who is talking about the invoking signal? Other signals can occur (i.e., SIGALRM). -- David Kastrup