mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
rename handler() to zhandler() because it's now exported to modules (14951)
This commit is contained in:
parent
ad740ebdd1
commit
3c7f60d084
3 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue