Is the write(2) system call atomic

Gordon Marx gcmarx at gmail.com
Sat Apr 8 17:20:50 EDT 2006


On 08/04/06, Jerry Feldman <gaf at blu.org> wrote:
> One solution is to use lockf(3) or fcntl(2) as a lock.

Two notes: on Linux, lockf(3) is fcntl(2), and an fcntl(2) "lock" is
advisory, so an ill-behaved program will ignore it and write with
impunity.

Gordon
--
Gordon Marx
gcmarx at gmail.com



More information about the Discuss mailing list