From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4470 invoked by alias); 14 Dec 2006 18:47:04 -0000 Received: (qmail 4426 invoked by uid 22791); 14 Dec 2006 18:46:57 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Dec 2006 18:46:42 +0000 Received: from sunsite.mff.cuni.cz (localhost.localdomain [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.8/8.13.8) with ESMTP id kBEIl7G3008299; Thu, 14 Dec 2006 19:47:07 +0100 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.13.8/8.13.8/Submit) id kBEIl7iB008298; Thu, 14 Dec 2006 19:47:07 +0100 Date: Thu, 14 Dec 2006 18:47:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] One more tst-pselect fix Message-ID: <20061214184706.GK3819@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00012.txt.bz2 Hi! The reason why tst-pselect fails even with pselect6 syscall seems to be incorrect use of sigblock, sigblock's argument is an old style signal mask, not the signal itself. 2006-12-14 Jakub Jelinek * misc/tst-pselect.c (do_test): Fix sigblock argument. --- libc/misc/tst-pselect.c.jj 2006-12-14 19:24:23.000000000 +0100 +++ libc/misc/tst-pselect.c 2006-12-14 19:44:45.000000000 +0100 @@ -38,7 +38,7 @@ do_test (void) return 1; } - if (sigblock (SIGUSR1) != 0) + if (sigblock (sigmask (SIGUSR1)) != 0) { puts ("sigblock failed"); return 1; Jakub