Proposal: a revoke() system call

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Jul 8 06:09:48 UTC 2008


In message <29793635.342951215467793639.JavaMail.root at 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 at 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.


More information about the freebsd-arch mailing list