[lug] named pipe missunderstanding

Jason Davis 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,


Thanks,
Jason

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:
>
>> Howdy,
>>   I think I have a missunderstanding about named pipes. Im using them
>> for IPC and Im losing data.
>> Here is the code I used:
>> http://stackoverflow.com/questions/4867780/linux-named-pipes-losing-data
>>
>> 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.
>
> http://tutorials.jenkov.com/java-io/pipes.html
> http://www.velocityreviews.com/forums/t151368-ipc-in-java.html
>
> Lori
> _______________________________________________
> 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 mailing list