diff options
author | brian <brian@FreeBSD.org> | 1998-05-09 14:45:06 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-05-09 14:45:06 +0000 |
commit | deb14ceb4a2910fc1042f054470715b6e63918a9 (patch) | |
tree | 48f0539d7a0425568f89c8fc3310965608ae064c /lib/libc | |
parent | 19d2c7b61e13115ae892405499bbbbf19db22e1a (diff) | |
download | FreeBSD-src-deb14ceb4a2910fc1042f054470715b6e63918a9.zip FreeBSD-src-deb14ceb4a2910fc1042f054470715b6e63918a9.tar.gz |
Add a BUGS section and describe a problem I've been having for
a few weeks now.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/send.2 | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2 index 57fcfb3..bf7bd4a 100644 --- a/lib/libc/sys/send.2 +++ b/lib/libc/sys/send.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" From: @(#)send.2 8.2 (Berkeley) 2/21/94 -.\" $Id$ +.\" $Id: send.2,v 1.7 1997/02/22 15:04:22 peter Exp $ .\" .Dd February 15, 1995 .Dt SEND 2 @@ -171,6 +171,19 @@ but may be caused by transient congestion. .It Bq Er EHOSTUNREACH The remote host was unreachable. .El +.Sh BUGS +Because +.Fn sendmsg +doesn't necessarily block until the data has been transferred, it +is possible to transfer an open file descriptor across an +.Dv AF_UNIX +domain socket +.Pq see Xr recv 2 , +then +.Fn close +it before it has actually been sent, the result being that the receiver +gets a closed file descriptor. It is left to the application to +implement an acknowlegment mechanism to prevent this from happening. .Sh SEE ALSO .Xr fcntl 2 , .Xr getsockopt 2 , |