From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20791 invoked by alias); 24 Mar 2006 20:52:26 -0000 Received: (qmail 20782 invoked by uid 22791); 24 Mar 2006 20:52:26 -0000 X-Spam-Check-By: sourceware.org Received: from smtpout.mac.com (HELO smtpout.mac.com) (17.250.248.85) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 24 Mar 2006 20:52:24 +0000 Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/8.12.11/smtpout03/MantshX 4.0) with ESMTP id k2OKqMPj027662; Fri, 24 Mar 2006 12:52:22 -0800 (PST) Received: from [10.35.3.20] ([216.191.234.70]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 4.0) with ESMTP id k2OKqKTn025200; Fri, 24 Mar 2006 12:52:21 -0800 (PST) Message-ID: <44245BC3.8010706@mac.com> Date: Fri, 24 Mar 2006 21:15:00 -0000 From: John Fodor User-Agent: Mozilla Thunderbird 1.0.7-1.4.1.centos4 (X11/20051007) MIME-Version: 1.0 To: Andreas Schwab CC: gdb@sourceware.org Subject: Re: gdb and multi-threaded (NPTL) programs References: <44244F1F.6030108@mac.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2006-03/txt/msg00179.txt.bz2 Andreas Schwab wrote: > John Fodor writes: > > >>Hmmm... so people who use POSIX threads have to put every syscall into a >>loop, ignoring EINTR? > > > Every library call that is allowed to return with EINTR must be handled > appropriately. sem_wait is specified as being able to return with EINTR. > If your program can't handle that it has a bug. > > Andreas. > I guess you're right. But remember this is an EINTR because we are single-stepping. Are yoiu saying that one should retry all syscalls on every EINTR? Thanks.