pipes
I have a basic question about pipes...
I have an app that will read an instrument about 10x a second. The data
read will take about 12 bytes.
It would be easiest for me from a programming standpoint write the app
so it simply dumps the data into a pipe, and any other app that needs
the data will read it from the pipe.
It's quite possible that this app might be dumping data into the pipe
for days without anyone reading it.
The data is realtime; once it's read it has no time value at all, so I
really don't care if it goes into a bit bucket.
Is it possible to set up a pipe so that the data just "falls out" if no
one is reading it? Or do I have the possibility of a buffer overflow
that would cause a crash somewhere?
Thanks,
--Yan
.
Relevant Pages
- [opensuse] Re: USER question
... how do you detect EOF on> the ... The only way to generate EOF on a pipe is to close the pipe. ... All use of the user alias is in a gosub and the gosub includes the user command that opens the pipe, and never closes it, relying on the fact that filepro doesn't actually spawn further instances of the target program when re-executing the same user command. ... If you try to read form user when the app isn't writing, you hang until the app sends you an end of line. ... (SuSE) - Re: pipes
... It would be easiest for me from a programming standpoint write the app ... the data will read it from the pipe. ... for days without anyone reading it. ... No crash. ... (comp.unix.programmer) - Re: pipes
... It would be easiest for me from a programming standpoint write the app ... the data will read it from the pipe. ... for days without anyone reading it. ... by having the writing process also open it for reading (some versions of ... (comp.unix.programmer) - Re: BFS vs. mainline scheduler benchmarks and measurements
... the latest upstream scheduler tree on a testbox of mine. ... The app creates a pipe, and forks a child that blocks on reading from ... (Linux-Kernel) - Re: to be (readable) or not to be (readable), thats the question.
... I want my app to be robust and detect dumb processes. ... I kill a *child* of the process connected to. ... Now, if I send some instruction down the pipe (yes, the pipe is still ... Is there an explanation for getting pipe readable events in this case? ... (comp.lang.tcl) |
|