Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2000 18:25:28 +0000
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Daniel Eischen <eischen@vigrid.com>
Cc:        David Malone <dwmalone@maths.tcd.ie>, Alfred Perlstein <bright@wintelcom.net>, Dmitry Dicky <diwil@dataart.com>, freebsd-hackers@FreeBSD.ORG, dwmalone@maths.tcd.ie
Subject:   Re: recvfrom() and signals 
Message-ID:   <200012191825.aa15924@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Tue, 19 Dec 2000 13:15:50 EST." <Pine.SUN.3.91.1001219131209.11408A-100000@pcnet1.pcnet.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > He is setting the signal handler with signal(), which calls
> > sigaction() without the SA_RESTART flag set, so it seems that should
> > interrupt recvfrom().

> Bzzt :-)  Alfred's correct.  Read the manpage for signal again.

Ahh - I was reading the source code and missed the ! in !sigismember().
I was thinking of people using alarm() to timeout recvfrom() using
a sigsetjmp(), but you don't need the syscall to be interrupted
for that.

*less confused now*

> To Dmitry:  Don't use antiquated signal.  Use sigaction and don't
> set the SA_RESTART flag.

Indeedy!

	David.


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? <200012191825.aa15924>