FIFO Filesystem corruption problems

I’ve been getting some strange behaviour while using FIFO’s.
If I create a FIFO in a path which resides on a physical disc and use this
fifo in an application, files on this disc are corrupted after the
application is completed.
When I change the fifo path to a ramdisk, the physical disc corruption no
longer occurs.
If I examine the corrupt files it is obvious that they have been overwritten
with the FIFO data.
How can this possibly happen???

Any ideas anyone??

-Liam Power.

Previously, Liam Power wrote in qdn.public.qnx4:

I’ve been getting some strange behaviour while using FIFO’s.
If I create a FIFO in a path which resides on a physical disc and use this
fifo in an application, files on this disc are corrupted after the
application is completed.
When I change the fifo path to a ramdisk, the physical disc corruption no
longer occurs.
If I examine the corrupt files it is obvious that they have been overwritten
with the FIFO data.
How can this possibly happen???

Any ideas anyone??

I believe that Fsys deals with Fifo’s and that it will if
necessary create a spill file on disk. I don’t know why it
is corrupting your hard disk. If your disk already had some
corruption, then it is quite possible that it will grow.
Otherwise it might be an Fsys bug.




Mitchell Schoenbrun --------- maschoen@pobox.com