From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16141 invoked from network); 18 Nov 2004 17:24:19 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Nov 2004 17:24:19 -0000 Received: (qmail 92312 invoked from network); 18 Nov 2004 17:24:13 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Nov 2004 17:24:13 -0000 Received: (qmail 28091 invoked by alias); 18 Nov 2004 17:23:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20566 Received: (qmail 28078 invoked from network); 18 Nov 2004 17:23:58 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Nov 2004 17:23:58 -0000 Received: (qmail 91426 invoked from network); 18 Nov 2004 17:22:58 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 18 Nov 2004 17:22:57 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Thu, 18 Nov 2004 17:21:47 +0000 Received: from csr.com ([10.102.144.127]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 18 Nov 2004 17:22:50 +0000 To: zsh-workers@sunsite.dk Subject: Re: SUGGESTION: kill -l could show numbers, too (+CLD vs CHLD) In-reply-to: <20041118163901.GD4511@sc> References: <20041118145208.GD13232@gerf.org> <20310.1100793917@csr.com> <20041118163901.GD4511@sc> Date: Thu, 18 Nov 2004 17:22:56 +0000 Message-ID: <6451.1100798576@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 18 Nov 2004 17:22:50.0759 (UTC) FILETIME=[3B09A170:01C4CD93] X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 Stephane Chazelas wrote: > Why SIGCLD and not SIGCHLD for zsh? It's an artefact of this sort of thing in header files: #define SIGCLD SIGCHLD /* Same as SIGCHLD (System V). */ #define SIGCHLD 17 /* Child status has changed (POSIX). */ We pick the first one, assuming that's to be preferred. The following explicitly prefers SIGCHLD. Any other multiple signals can be handled similarly. I'm not sure about SIGPOLL. Maybe we should think about mapping alternatives so that both kill -CLD and kill -CHLD work. Index: Src/signames2.awk =================================================================== RCS file: /cvsroot/zsh/zsh/Src/signames2.awk,v retrieving revision 1.3 diff -u -r1.3 signames2.awk --- Src/signames2.awk 12 Mar 2004 09:59:24 -0000 1.3 +++ Src/signames2.awk 18 Nov 2004 17:15:22 -0000 @@ -12,6 +12,7 @@ split(sigtail, tmp) signam = substr(tmp[1], 4, 20) signum = tmp[2] + if (signam == "CHLD" && sig[signum] == "CLD") sig[signum] = "" if (sig[signum] == "") { sig[signum] = signam if (0 + max < 0 + signum && signum < 60) -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************