Having problems opening FIFO in C

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 :(

+3
source share
2 answers

- Linux 1024 . , , FIFO .

0

:)

, - FIFO ( ).. , , ..

+4

Source: https://habr.com/ru/post/1782752/


All Articles