Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!umcp-cs!chris
From: chris@umcp-cs.UUCP (Chris Torek)
Newsgroups: net.unix-wizards
Subject: Does MSG_PEEK cause descriptor table problems?
Message-ID: <1762@umcp-cs.UUCP>
Date: Mon, 10-Dec-84 04:07:02 EST
Article-I.D.: umcp-cs.1762
Posted: Mon Dec 10 04:07:02 1984
Date-Received: Wed, 12-Dec-84 03:28:26 EST
Distribution: net
Organization: U of Maryland, Computer Science Dept., College Park, MD
Lines: 16

I've been rewriting the parts of the socket stuff dealing with atomic
and connectionless protocols, and discovered this interesting tidbit:
if you receive, in AF_UNIX, with MSG_PEEK, a message containing "rights"
(file descriptors), you get those descriptors then and there.  If you
then receieve without MSG_PEEK, you get them *again*, with apparently
disastrous effect.

Is this not a bug?  How come I haven't seen anything posted about it?

(There are several other bugs in soreceive dealing with MSG_PEEK, too.)
-- 
(This line accidently left nonblank.)

In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (301) 454-7690
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris@maryland