[lug] named pipe missunderstanding
jdavis at openactive.org
Wed Feb 2 09:12:25 MST 2011
Thanks for the replies. Im pretty sure I can treat named pipes like
any other file. Someone suggested that
when a process closes the fifo that any data not cunsumed yet will be
lost. This would explain what Im seeing,
On Wed, Feb 2, 2011 at 7:47 AM, Lori Reed <lorireed at lightning-rose.com> wrote:
> On 02/01/2011 02:27 PM, Jason Davis wrote:
>> I think I have a missunderstanding about named pipes. Im using them
>> for IPC and Im losing data.
>> Here is the code I used:
>> Any ideas why I could be losing data?
> Okay, Java is not my forte, but this is what I think is going on.
> Pipes are not files, and you're using files, not pipes.
> Pipes in Java (PipedOutputStream and PipedInputStream classes) are for
> communication between threads running in the same JVM, not for IPC.
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
More information about the LUG