I had problems opening FIFOs in C .. First, I created them using the mkfifo () function with a resolution of 0777, and when I tried to open them, he managed to open only the first FIFO, then the process gets stuck in opening the second FIFO, and this my code is:
fd1 = open("FIFO1_PATH", O_WRONLY );
fd2 = open("FIFO2_PATH", O_WRONLY );
It will not be executed, but as soon as I comment on the second line, it is executed! Is there a limit on the number of open FIFOs per process? I do not know why this is happening. I just spent 3 hours trying to figure out what the problem was, but without any results :(
source
share