zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: General unqueue_signal problem
Date: Mon, 18 Jun 2001 09:21:50 +0200 (MET DST)	[thread overview]
Message-ID: <200106180721.JAA11015@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <Tc0a88d01541dc4c0a3@mailsweeper01.cambridgesiliconradio.com>

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


  reply	other threads:[~2001-06-18  7:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.SV4.4.33.0106120954500.24714-200000@itsrm2.mow.siemens.ru>
     [not found] ` <yeh3d95lsa0.fsf@water.cs.brown.edu>
2001-06-12 17:58   ` AIX-problem: the main module won't link statically Andrej Borsenkow
2001-06-12 18:19     ` Peter Stephenson
2001-06-12 19:14       ` Bart Schaefer
2001-06-12 20:09         ` Wayne Davison
2001-06-13  9:20           ` Peter Stephenson
2001-06-13  6:09         ` 4.0.2 patches " Andrej Borsenkow
2001-06-13  9:22           ` Peter Stephenson
2001-06-13  8:46         ` Sven Wischnowsky
2001-06-13  8:48           ` Sven Wischnowsky
2001-06-13  6:34     ` General unqueue_signal problem Andrej Borsenkow
2001-06-13  9:30       ` Peter Stephenson
2001-06-18  7:21         ` Sven Wischnowsky [this message]
2001-06-18  9:20           ` Peter Stephenson
2001-06-13 10:57       ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200106180721.JAA11015@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).