[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Are write() calls guaranteed atomic?
- Subject: Are write() calls guaranteed atomic?
- From: dnelson at allantgroup.com (Dan Nelson)
- Date: Mon Jun 2 10:36:20 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_(_dot_)_com
Visit your host, monkey.org