You don't have to mkfifo() in both programs -- you only need it in the first one. Then the file will exist, and all you have to do is open it in the second one.

Good luck.