Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: General unqueue_signal problem
- X-seq: zsh-workers 14951
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: General unqueue_signal problem
- Date: Mon, 18 Jun 2001 09:21:50 +0200 (MET DST)
- In-reply-to: <Tc0a88d01541dc4c0a3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author