UNIX domain socket shortcomings, bug in select?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Date: Friday, October 23, 1992 - 4:10 am

I've been trying to get syslogd working for the past several days,
and ran into a few problems.

The UNIX domain socket implementation only implements connection
based sockets, and syslogd wants a connectionless socket.  Is anyone
working on implementing recvfrom/sendto?

Next I thought, no problem, I'll just rewrite the code to use
a named pipe instead.  In my first attempt I opened the FIFO
with the flags O_RDONLY|O_NONBLOCK.  This worked (the open
didn't hang), but the select system call kept indicating that
the FIFO was ready for reading when in fact it wasn't (read
returned -1, errno EAGAIN).  This doesn't seem like correct
behaviour for select.

Fortunately the story ends well: I was able to get a non-blocking
open on the FIFO by opening with just O_RDWR.  The above issues
should still be looked at, though, for the sake of other
applications.

                        Eric Negaard
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
UNIX domain socket shortcomings, bug in select?, Eric Negaard, (Fri Oct 23, 4:10 am)