Re: syslog() blocks on glibc 2.1.3 with kernel 2.2.x

From: Patrick J. LoPresti (patl@cag.lcs.mit.edu)
Date: Mon Oct 23 2000 - 14:58:39 EST


"David S. Miller" <davem@redhat.com> writes:

> SOCK_DGRAM over AF_UNIX is reliable, it's a local transport.

This is contrary to the documentation ("man socket"). The behavior
you describe is what I would expect for SOCK_SEQPACKET, not
SOCK_DGRAM.

Is the Linux behavior even consistent with POSIX? You are saying that
SOCK_DGRAM behaves fundamentally differently for local connections
than for remote ones; in particular, the latter *do not block* while
the former do. Even if this is standard, it ought to be documented
better...

I am pretty sure other Unixes do not behave like Linux does here (when
I ask for SOCK_DGRAM, I expect fast, non-blocking, unreliable
delivery), but perhaps I am wrong.

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



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:21 EST