From owner-freebsd-hackers Tue Sep 24 9:59:26 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9533437B401 for ; Tue, 24 Sep 2002 09:59:25 -0700 (PDT) Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51E3443E6A for ; Tue, 24 Sep 2002 09:59:25 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0304.cvx21-bradley.dialup.earthlink.net ([209.179.193.49] helo=mindspring.com) by avocet.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17tt1i-0003xw-00; Tue, 24 Sep 2002 09:59:11 -0700 Message-ID: <3D90999D.14E02BF0@mindspring.com> Date: Tue, 24 Sep 2002 09:58:05 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Andriy Gapon Cc: eischen@pcnet1.pcnet.com, julian@elischer.org, hackers@FreeBSD.org Subject: Re: libc_r in stable References: <20020924105755.Y81038-100000@edge.foundation.invalid> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andriy Gapon wrote: > I have noticed that it is not uncommon for a multithreaded program that > invokes a lot of system calls to get EINTR from a syscall even if no > non-default signal handling is installed and no 'real' signals are > received. Looks like some syscalls get interrupted by the scheduling > signal. In my understanding, this should be something hidden from a user. > Is there any way to restart syscalls interrupted by the scheduling signal > without returning a libc_r call ? Set SA_RESTART in the sa_flags of the sigaction for the scheduling signal. Use "man sigaction" for details. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message