Known 2.0.x bug.
> 1) The call to PF_UNIX must be PF_UNSPEC (or 0) on SunOS and BSD,
> even though it claims otherwise. There's some talk of PF_LOCAL,
> but that's not even documented outside BSD. Linux will accept
> either PF_UNIX or PF_UNSPEC there.
PF_LOCAL is the POSIX 1003.1g name for local sockets. PF_UNIX isnt ok because
POSIX is OS indepedant
> 2) On Linux, shutdown is broken! You have to give it the opposite
> argument! You must perversely do this:
> shutdown(READER, 0);
> shutdown(WRITER, 1);
Its broken for AF_UNIX sockets only in 2.0.x. And yes known bug. Please
don't fix it by reversing them, you'll break on newer kernels with the bug
fixed.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu