Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jul 2008 06:09:46 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Sergey Babkin <babkin@verizon.net>
Cc:        arch@FreeBSD.org, Robert Watson <rwatson@FreeBSD.org>
Subject:   Re: Proposal: a revoke() system call 
Message-ID:  <701.1215497386@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 07 Jul 2008 16:56:33 EST." <29793635.342951215467793639.JavaMail.root@vms126.mailsrvcs.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <29793635.342951215467793639.JavaMail.root@vms126.mailsrvcs.net>, Se
rgey Babkin writes:

>>If the only reason we are dicussing this, is that people find the
>>magic pipe to select ugly, then I would even argue that we have not
>>reached critical mass for even thinking.
>
>Well, there are a couple of problems with magical pipes:
>
>1. It means using 3 times as many file descriptors. (One for the original
>socket, and 2 for the ends of the pipe).
>
>2. When working with the 3rd-party libraries,  it requires a substantial rework of these 
>libraries. Getting a file decriptor from inside the library's implementation
>and forcing it to close is a lot less invasive and can be done with a simple
>API wrapper.

What you're proposing to do in the kernel isn't any less complicated :-)

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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