lkml.org 
[lkml]   [2000]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: syslog() blocks on glibc 2.1.3 with kernel 2.2.x
Date
"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/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.145 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site