Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 1999 01:17:50 +0200
From:      Matthias Buelow <mkb@altair.mayn.de>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: How to prevent a system call from restart?
Message-ID:  <19991011011750.A967@altair.mayn.de>
In-Reply-To: <Pine.GSO.3.96.991010150931.28616A-100000@sol.cs.binghamton.edu>
References:  <Pine.GSO.3.96.991010150931.28616A-100000@sol.cs.binghamton.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Zhihui Zhang wrote:

>I modify the day time client program from the Stevens' book and run it on
>both a Sun workstation and a FreeBSD machine.  In the program, I use
>signal() and alarm() to set a 5 seconds timeout.  The program works as
>expected on Sun (after I comment out the daytime line in the file
>/etc/inetd.conf) but not on the FreeBSD machine. 

Steven's book (I assume ``Advanced Programming in the Unix Environment'')
also tells you about the sigaction() system call.  If you use sigaction
without SA_RESTART, the signal will not restart slow system calls, causing
them to flag EINTR.

mkb


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991011011750.A967>