Subject: misc/6616: jmptest.c fix to adapt signal changes in src/regress
To: None <gnats-bugs@gnats.netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 12/20/1998 14:00:12
>Number:         6616
>Category:       misc
>Synopsis:       jmptest.c in src/regress fix to adapt signal changes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 19 21:05:00 1998
>Last-Modified:
>Originator:     Izumi Tsutsui
>Organization:
Izumi Tsutsui	Himeji City Japan
>Release:        NetBSD-current supped on 19981206
>Environment:
System: NetBSD mirage 1.3I NetBSD 1.3I (MIRAGE) #41: Thu Dec 10 22:16:14 JST 1998 root@:/usr/src/sys/arch/i386/compile/MIRAGE i386


>Description:
src/regress/lib/libc/setjmp/jmptest.c is not adapted to signal mask bit
changes in current.
>How-To-Repeat:
make all in src/regress, and then will get:

/usr/src/regress/lib/libc/_setjmp/../setjmp/jmptest.c:104: incompatible types in assignment

>Fix:
Use sigemptyset() in jmptest.c.

--- regress/lib/libc/setjmp/jmptest.c.orig	Sat Oct 14 10:07:39 1995
+++ regress/lib/libc/setjmp/jmptest.c	Sun Dec 20 13:14:10 1998
@@ -101,7 +101,7 @@
 #endif
 
 	sa.sa_handler = aborthandler;
-	sa.sa_mask = 0;
+	sigemptyset(&sa.sa_mask);
 	sa.sa_flags = 0;
 	if (sigaction(SIGABRT, &sa, NULL) == -1)
 		err(1, "sigaction failed");
>Audit-Trail:
>Unformatted: