Opening Files

Jens Benecke (jens@pinguin.conetix.de)
Sat, 4 Dec 1999 18:10:18 +0100


Hi,

I suppose there are race conditions (or whatever) to be taken care of when
one process opens a file irregularly in append mode to write something,
while another (probably at the same time) opens it in read-only mode to
read the contents?

So far I haven't had any errors even when they do their stuff in the same
second - but I haven't tried to provoke collisions either. Should I use
lock files or something, or is it no problem if one of them only reads?

Thanks. :)

-- 
_ciao, Jens_______________________________ http://www.pinguin.conetix.de
·
"First they ignore you. Then they laugh at you. Then they fight you.
 And then you win." 						-- Gandhi

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/