Are write() calls guaranteed atomic?
Dan Nelson
dnelson at allantgroup.com
Mon Jun 2 10:36:16 PDT 2003
In the last episode (Jun 02), Matthew Hagerty said:
> Thanks for the info, very helpful! What reference did you get that
> from? I searched high and low to find a definitive answer (like the
> one above) before posting.
The Open Group has their Single Unix Specification available online,
which is technically identical to IEEE Std 1003.1.
http://www.unix.org/single_unix_specification/
> As for the clients, no, I don't have control over them. They are web
> server child processes, Apache usually. I considered using a socket, but
> I must have missed something since I didn't realize you could have a local
> socket that looks and smells like a file to external processes? Based on
> your post, can I assume that I can create a socket that can be accessed
> using open() and write() by external processes?
>
> On my way to RTFM... man socket (again...)
Take a look at syslogd; it creates a unix domain socket at
/var/run/log.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-hackers
mailing list