filesystem without interference from devel/CVS metadata. PKGNAME stays the same. Discussed with agc.
16 lines
439 B
Text
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;
|