From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261847AbVGaR76 (ORCPT ); Sun, 31 Jul 2005 13:59:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261848AbVGaR76 (ORCPT ); Sun, 31 Jul 2005 13:59:58 -0400 Received: from zproxy.gmail.com ([64.233.162.206]:64958 "EHLO zproxy.gmail.com") by vger.kernel.org with ESMTP id S261847AbVGaR75 convert rfc822-to-8bit (ORCPT ); Sun, 31 Jul 2005 13:59:57 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=o8cBLb5kxbt4GeaRSD7FD2meox/prOfeb3DgRaepeNsep+T5UiuZiRo4K9C6nUjpzUxZRbHlIqATEOQGlx6rqbPeiGUiSJMg2gKT1yK7k4Bqj64YOK3ulDCtkVQQ0F8SC+IwS3YIgBv9M2fx0Wr06X9hA6uwWUgJh/4CRS2IMvg= Message-ID: Date: Sun, 31 Jul 2005 10:59:57 -0700 From: Ulrich Drepper Reply-To: Ulrich Drepper To: Sanjoy Mahajan Subject: Re: sigwait() breaks when straced Cc: Pavel Machek , linux-kernel@vger.kernel.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 7/30/05, Sanjoy Mahajan wrote: > so the return value should not be 4 (or the docs are not right). This return value simply indicated EINTR (sigwait does not set errno, read the docs). The kernel simply doesn't restart the function in case of a signal. It should do this, though.