[RFC] Is sendmsg without data but with cmsg OK?

Alexander Viro (viro@math.psu.edu)
Wed, 28 Oct 1998 13:27:55 -0500 (EST)


Alan, the current code in net/af_unix.c silently discards messages
with zero length of data part, even if they do contain cmsg's. Does
something terrrible a-la POSIX require such behaviour? If it doesn't I
have a patch for you ;-/ I think that current behaviour is wrong, because
a) if all we are going to do is to pass some descriptors, well,
sending some dummy data seems klugy.
b) even if such messages should be discarded it's not too nice to
discard them silently.
c) discarding such beasts for SOCK_STREAM and allowing them for
SOCK_DGRAM sounds wrong.
Cheers,
Al
-- 
There are no "civil aviation for dummies" books out there and most of
you would probably be scared and spend a lot of your time looking up
if there was one. :-)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/