Browsing index pages (2 articles)
↧
Is there a neat way to handle pipe (FIFO) locking in C?
Hi!I have a C assignment where I need to make a named pipe (FIFO), and let 2 child processes write lines into it while the parent process reads those lines (and processes the received data). I'm new to...
View ArticleAnswer by rici for Is there a neat way to handle pipe (FIFO) locking in C?
A FIFO server should not close() its FIFO; doing so is likely to lose data, and may also result in sending SIGPIPE to clients.The server should open the FIFO for reading, and then read from it in a...
View Article
Browsing index pages (2 articles)