Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2006 09:08:30 -0500 (EST)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        freebsd-arch@freebsd.org, "Arne H. Juul" <arnej@pvv.ntnu.no>, David Xu <davidxu@freebsd.org>, freebsd-java@freebsd.org
Subject:   Re: close() of active socket does not work on FreeBSD 6
Message-ID:  <Pine.GSO.4.64.0612120906590.6826@sea.ntplx.net>
In-Reply-To: <20061212135647.GK311@deviant.kiev.zoral.com.ua>
References:  <Pine.LNX.4.62.0612111535280.32258@decibel.pvv.ntnu.no> <20061211171115.GD311@deviant.kiev.zoral.com.ua> <Pine.LNX.4.62.0612112259050.12159@decibel.pvv.ntnu.no> <200612120816.07608.davidxu@freebsd.org> <Pine.LNX.4.62.0612120142010.30236@decibel.pvv.ntnu.no> <Pine.GSO.4.64.0612111956110.2938@sea.ntplx.net> <Pine.GSO.4.64.0612120814460.6529@sea.ntplx.net> <20061212135647.GK311@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 Dec 2006, Kostik Belousov wrote:

> On Tue, Dec 12, 2006 at 08:18:32AM -0500, Daniel Eischen wrote:
>> It's also couldn't be entirely solved by fixing it in the
>> threads library.  You could still have a non-threaded
>> application that waits on a read operation, but receives
>> a signal and closes the socket in the signal handler.
>
> This is not the problem. The read (as syscall being executed) is aborted
> when signal is delivered. Original poster considered situation where
> read() is active (in particular, f_count of struct file is incremented
> by fget, that caused the reported behaviour).

Even when SA_RESTART is set?

-- 
DE



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