Re: data written to file missed by reader



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.

.



Relevant Pages

  • Re: Mahler #6
    ... >>> The fact that each reader brings something unique to the novel is true, ... In reading, the book is interpreted by the listener much ... > That's how some writers think of it, yes (mostly those writing more ...
    (rec.music.classical.recordings)
  • Re: Im dreading the teacher conference
    ... not a great reader (solidly where he should be according ... the writing exercises. ... Reading comes before writing. ... hear what the teacher has to say. ...
    (misc.kids)
  • inuitive writing - a suggestion...
    ... writing and its problems. ... writing and reading as we know it today - is ... the idea to get lost in translation, because the thought of the writer ... are three divergent versions - the writer, the text, and the reader, ...
    (sci.lang)
  • Re: Mahler #6
    ... >> The fact that each reader brings something unique to the novel is true, ... >> difference is in the intermediation of the interpretor. ... In reading, the book is interpreted by the listener much ... That's how some writers think of it, yes (mostly those writing more ...
    (rec.music.classical.recordings)
  • Re: Generating random signatures?
    ... >> reader on $SIGFILE. ... opening a FIFO for writing when no other process ... > has it open for reading will block until another process opens it for ... to the pipe again, and the reading process getting SIGPIPE. ...
    (comp.unix.shell)