Question about FIFO
I have an application where there is a reader process that reads data from fifo and multiple writer processes that writes data into the fifo. Both read and write are non blocking.
Everything works fine until suddenly a situation like below happens:
Writer writes n bytes into the fifo but the reader returns saying no data to be read. This is very strange.
I also doubt that there is some kind of stack corruption inside the process memory but the process doesnt crash but it just continues doing its work. So my doubt is after that memory corruption, if the process reads from FIFO, it returns saying no data read until the process is restarted. After restarting everything works fine again.
Can there be a case where a corruption in process memory affect the FIFO also?
Please clarify
|