lkml.org 
[lkml]   [1999]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectOpening Files
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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.027 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site