NetBSD Problem Report #39000

From www@NetBSD.org  Fri Jun 20 14:55:39 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 0F77F63B8AD
	for <gnats-bugs@gnats.netbsd.org>; Fri, 20 Jun 2008 14:55:39 +0000 (UTC)
Message-Id: <20080620145538.CF74663B880@narn.NetBSD.org>
Date: Fri, 20 Jun 2008 14:55:38 +0000 (UTC)
From: jkb@systella.fr
Reply-To: jkb@systella.fr
To: gnats-bugs@NetBSD.org
Subject: sigpending doen't modify its set argument
X-Send-Pr-Version: www-1.0

>Number:         39000
>Category:       lib
>Synopsis:       sigpending doen't modify its set argument
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 20 15:00:00 +0000 2008
>Originator:     BERTRAND Joël
>Release:        4.0
>Organization:
>Environment:
NetBSD riemann 4.0 NetBSD 4.0 (GENERIC.MP) #0: Sun Dec 16 02:23:20 PST 2007  builds@wb29:/home/builds/ab/netbsd-4-0-RELEASE/sparc/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/sparc/compile/GENERIC.MP sparc
>Description:
sigpending doesn't work. "set" argument is not modified when signal is caught.
>How-To-Repeat:
Try to build a simple program with :

          while(sigismember(&set, SIGUSR1) == 0)
            {
                if (sigpending(&set) != 0)
                {
                    exit(0);
                }
            }

Run this code, and send SIGUSR1. 'set' variable is never modified.
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.