pkgsrc/devel/scmcvs/patches/patch-ad
schmonz c02b407e92 Move cvs to scmcvs so it can be checked out on a case-insensitive
filesystem without interference from devel/CVS metadata. PKGNAME
stays the same. Discussed with agc.
2007-05-27 09:49:41 +00:00

16 lines
439 B
Text

$NetBSD: patch-ad,v 1.1 2007/05/27 09:49:51 schmonz Exp $
--- lib/sighandle.c.orig 2004-02-03 15:37:50.000000000 +0100
+++ lib/sighandle.c
@@ -155,8 +155,10 @@ int sig;
this = SIG_handlers[sig];
while (this != (struct SIG_hlist *) NULL)
{
- (*this->handler)(sig);
+ /* handler may free this (and thus clobber this->next) */
+ struct SIG_hlist *current = this;
this = this->next;
+ (*current->handler)(sig);
}
return;