Date: Mon, 07 Jul 2008 10:05:13 -0500 (CDT) From: Sergey Babkin <babkin@verizon.net> To: Sergey Babkin <babkin@verizon.net>, Robert Watson <rwatson@FreeBSD.org> Cc: arch@freebsd.org Subject: Re: Re: Proposal: a revoke() system call Message-ID: <7100389.65001215443113960.JavaMail.root@vms074.mailsrvcs.net>
next in thread | raw e-mail | index | archive | help
>On Sun, 6 Jul 2008, Sergey Babkin wrote: > >> int revoke(int fd, int flags) > >Seems like that conflicts with our existing revoke(2) system call. You could Aha, I guess when I've checked, I've looked at a real old version of FreeBSD. Sure, the name can be changed. >achieve something of the same end by opening /dev/null and then dup2()'ing to >the file descriptor you want to revoke, perhaps? Right now there's a known That's a great idea. I haven't thought about it. It should do everything. >issue that calling close(2) on a socket from one thread doesn't interrupt a >socket in a blocking I/O call from another thread -- you first have to call >shutdown(2), and then close(2). This has caused problems for Java in the >past, but I'm not sure that it's really a bug given that it's not unreasonable >behavior not rejected by the spec :-). Maybe I'll see if I can fix that. -SB
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7100389.65001215443113960.JavaMail.root>