Re: data written to file missed by reader
- From: "Kaz Kylheku" <kkylheku@xxxxxxxxx>
- Date: 14 Sep 2006 00:01:01 -0700
seanmkirkpatrick@xxxxxxxxx wrote:
Hello All,
We currently run processes that communicate by writing an encoded
message to a flat file while other processes are reading the file. A
message that was written to the file by one process (fsync is not
called after each write) was missed by the reader.
In other words, you're having trouble duplicating the reliability of
"tail -f".
:)
You have a bug in the tail-following logic.
Might you be skipping the message with an inappropriate seek operation?
Also, be sure that you don't have multiple threads or processes sharing
the same file descriptor. Every reader must use its own, separately
opened fd.
.
- Follow-Ups:
- Re: data written to file missed by reader
- From: David Schwartz
- Re: data written to file missed by reader
- References:
- data written to file missed by reader
- From: seanmkirkpatrick
- data written to file missed by reader
- Prev by Date: Re: Overriding System Calls
- Next by Date: Re: data written to file missed by reader
- Previous by thread: Re: data written to file missed by reader
- Next by thread: Re: data written to file missed by reader
- Index(es):
Relevant Pages
|