From owner-freebsd-hackers Sun Oct 10 13:25:30 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from gw-nl4.philips.com (gw-nl4.philips.com [192.68.44.36]) by hub.freebsd.org (Postfix) with ESMTP id B8AAB1594B for ; Sun, 10 Oct 1999 13:24:59 -0700 (PDT) (envelope-from Jos.Backus@nl.origin-it.com) Received: from smtprelay-nl1.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl4.philips.com with ESMTP id WAA19670 for ; Sun, 10 Oct 1999 22:24:57 +0200 (MEST) (envelope-from Jos.Backus@nl.origin-it.com) Received: from smtprelay-eur1.philips.com(130.139.36.3) by gw-nl4.philips.com via mwrap (4.0a) id xma019668; Sun, 10 Oct 99 22:24:57 +0200 Received: from hal.mpn.cp.philips.com (hal.mpn.cp.philips.com [130.139.64.195]) by smtprelay-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with SMTP id WAA12970 for ; Sun, 10 Oct 1999 22:24:57 +0200 (MET DST) Received: (qmail 42381 invoked by uid 666); 10 Oct 1999 20:25:19 -0000 Date: Sun, 10 Oct 1999 22:25:19 +0200 From: Jos Backus To: freebsd-hackers@freebsd.org Subject: Re: How to prevent a system call from restart? Message-ID: <19991010222519.B42122@hal.mpn.cp.philips.com> Reply-To: Jos Backus References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Oct 10, 1999 at 03:16:43PM -0400, Zhihui Zhang wrote: > Later I find out that the reason maybe the recvfrom() restarts > *automatically* in FreeBSD. Maybe because of the following in /usr/src/lib/libc/gen/signal.c? sig_t signal(s, a) int s; sig_t a; [...] if (!sigismember(&_sigintr, s)) sa.sa_flags |= SA_RESTART; ? -- Jos Backus _/ _/_/_/ "Reliability means never _/ _/ _/ having to say you're sorry." _/ _/_/_/ -- D. J. Bernstein _/ _/ _/ _/ Jos.Backus@nl.origin-it.com _/_/ _/_/_/ use Std::Disclaimer; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message