Re: close() of active socket does not work on FreeBSD 6
- From: Daniel Eischen <deischen@xxxxxxxxxxx>
- Date: Mon, 11 Dec 2006 20:05:58 -0500 (EST)
On Tue, 12 Dec 2006, Arne H. Juul wrote:
On Tue, 12 Dec 2006, David Xu wrote:On Tuesday 12 December 2006 06:34, Arne H. Juul wrote:
<snip>
This is exactly the sort of issue that should be solved by theIt should not be done in new thread library, do you want a bloat
thread library / kernel threads implementation and not in every
threaded application that needs it, in my view.
and error-prone thread library ? Instead if this semantic is really
necessary, it should be done in kernel.
Well, it depends on the alternatives.
If a clean kernel implementation is possible - yes please, of course.
If only a complex, error-prone kernel implementation is possible,
I would prefer to have the complexity in the thread library.
Hacking libthr or libpthread to do this for you is not
an option. They would then look like libc_r since all
fd's accesses would need to be wrapped. If this needs
to be done, it must be in the kernel.
Common sense leads me to think that a close() should release
threads in IO operations (reads/writes/selects/polls) and
return EBADF or something appropriate. At least when behavior
is not dictated by POSIX or other historical/defactor behavior.
--
DE
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: close() of active socket does not work on FreeBSD 6
- From: Daniel Eischen
- Re: close() of active socket does not work on FreeBSD 6
- From: Daniel Eischen
- Re: close() of active socket does not work on FreeBSD 6
- From: Bruce Evans
- Re: close() of active socket does not work on FreeBSD 6
- References:
- Re: close() of active socket does not work on FreeBSD 6
- From: Kostik Belousov
- Re: close() of active socket does not work on FreeBSD 6
- From: Arne H. Juul
- Re: close() of active socket does not work on FreeBSD 6
- From: David Xu
- Re: close() of active socket does not work on FreeBSD 6
- From: Arne H. Juul
- Re: close() of active socket does not work on FreeBSD 6
- Prev by Date: Re: close() of active socket does not work on FreeBSD 6
- Next by Date: Re: close() of active socket does not work on FreeBSD 6
- Previous by thread: Re: close() of active socket does not work on FreeBSD 6
- Next by thread: Re: close() of active socket does not work on FreeBSD 6
- Index(es):
Relevant Pages
|
|