From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17684 invoked by alias); 1 Dec 2005 07:55:19 -0000 Received: (qmail 17677 invoked by uid 22791); 1 Dec 2005 07:55:18 -0000 X-Spam-Check-By: sourceware.org Received: from web34107.mail.mud.yahoo.com (HELO web34107.mail.mud.yahoo.com) (66.163.178.105) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 01 Dec 2005 07:55:13 +0000 Received: (qmail 62568 invoked by uid 60001); 1 Dec 2005 07:55:11 -0000 Message-ID: <20051201075511.62566.qmail@web34107.mail.mud.yahoo.com> Received: from [68.198.218.100] by web34107.mail.mud.yahoo.com via HTTP; Wed, 30 Nov 2005 23:55:11 PST Date: Thu, 01 Dec 2005 07:55:00 -0000 From: Kenny Simpson Subject: re: posix semaphores not working under gdb To: daniel.juan@gmail.com Cc: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00001.txt.bz2 One thing that caused me some pain a while ago is the semaphore behavioral change in NPTL vs LinuxThreads. Under LinuxThreads, sem_wait will never return until the semaphore is aquired. With NPTL, sem_wait can return EINTR ... and DOES when gdb attaches. The man pages in many distrubutions still have the old LinuxThreads documentation which explictly states that sem_wait will not be affected by signals. Hope this helps... -Kenny __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com