From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3579 invoked from network); 18 Jun 2001 07:23:39 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 18 Jun 2001 07:23:39 -0000 Received: (qmail 17432 invoked by alias); 18 Jun 2001 07:22:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14951 Received: (qmail 17414 invoked from network); 18 Jun 2001 07:22:57 -0000 From: Sven Wischnowsky Date: Mon, 18 Jun 2001 09:21:50 +0200 (MET DST) Message-Id: <200106180721.JAA11015@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.dk Subject: Re: General unqueue_signal problem In-Reply-To: Peter Stephenson wrote: > ... > > Adding mod_export is obviously the right first step, and probably ought to > fix this particular bug. I haven't got time to change the name `handler' > at the moment, but replacing it by zhandler sounds sensible. Here's the patchlet for that. Bye Sven Index: Src/signals.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/signals.c,v retrieving revision 1.18 diff -u -r1.18 signals.c --- Src/signals.c 2001/06/13 11:50:09 1.18 +++ Src/signals.c 2001/06/18 07:22:52 @@ -93,7 +93,7 @@ #ifdef POSIX_SIGNALS struct sigaction act; - act.sa_handler = (SIGNAL_HANDTYPE) handler; + act.sa_handler = (SIGNAL_HANDTYPE) zhandler; sigemptyset(&act.sa_mask); /* only block sig while in handler */ act.sa_flags = 0; # ifdef SA_INTERRUPT /* SunOS 4.x */ @@ -401,7 +401,7 @@ /**/ mod_export RETSIGTYPE -handler(int sig) +zhandler(int sig) { sigset_t newmask, oldmask; Index: Src/signals.h =================================================================== RCS file: /cvsroot/zsh/zsh/Src/signals.h,v retrieving revision 1.3 diff -u -r1.3 signals.h --- Src/signals.h 2001/01/16 13:44:20 1.3 +++ Src/signals.h 2001/06/18 07:22:52 @@ -82,7 +82,7 @@ sigset_t oset; \ queue_front = (queue_front + 1) % MAX_QUEUE_SIZE; \ oset = signal_setmask(signal_mask_queue[queue_front]); \ - handler(signal_queue[queue_front]); /* handle queued signal */ \ + zhandler(signal_queue[queue_front]); /* handle queued signal */ \ signal_setmask(oset); \ } \ } while (0) -- Sven Wischnowsky wischnow@informatik.hu-berlin.de