Messages in this thread |  | | From | (Patrick J. LoPresti) | Subject | Re: syslog() blocks on glibc 2.1.3 with kernel 2.2.x | Date | 23 Oct 2000 15:58:39 -0400 |
| |
"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/
|  |