1
0
mirror of https://github.com/zsh-users/zsh synced 2024-07-08 19:55:44 +00:00

rename handler() to zhandler() because it's now exported to modules (14951)

This commit is contained in:
Sven Wischnowsky 2001-06-18 07:24:22 +00:00
parent ad740ebdd1
commit 3c7f60d084
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2001-06-18 Sven Wischnowsky <wischnow@zsh.org>
* 14951: Src/signals.c, Src/signals.h: rename handler() to
zhandler() because it's now exported to modules
2001-06-17 Bart Schaefer <schaefer@zsh.org>
* Jason Began: 3931 (see cvs.netbsd.org): src/zshconfig.ac: Use

View File

@ -93,7 +93,7 @@ install_handler(int sig)
#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 @@ signal_suspend(int sig, int sig2)
/**/
mod_export RETSIGTYPE
handler(int sig)
zhandler(int sig)
{
sigset_t newmask, oldmask;

View File

@ -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)