Questions tagged [mkfifo]

Creates a named-pipe (aka FIFO)

A named pipe, also called a FIFO for its behaviour, can be used to connect two unrelated processes and exists independently of the processes; meaning it can exist even if no one is using it. A FIFO is created using the mkfifo() library function.


What is considered related processes?

Probably processes which are related via one or more parent/child relations (e.g. includes siblings). The common ancestor would have created the two ends of the pipe. Unrelated processes lack that common ancestor.

229 questions
-1
votes
1 answer

Segmentation fault generated by mkfifo() in C

I've been trying to debug this for a few hours now and I'm still stuck... I get a segmentation fault with a "mkfifo" call in this code (it is only a part of my entire code, since I figured the rest was not relevant here) : #include…
-2
votes
1 answer

Linux semaphores

I'm looking for help with synchronization problem in Linux. I'm newbie, and I think I don't really understand how to use semaphores to synchronize. My task is to sync two processes that access a file - one reads from fifo from another process,…
voidmat
  • 113
  • 3
  • 12
-3
votes
1 answer

C++ Client-server (FIFOs, pipes, forks)

I' ll attach here the code I wrote, it doesn't work the way it should, it doesn't read properly from fifo. It was sending the username correctly before adding more code, it makes me think I wrote the code bad from beginning. If it's helpful I'll…
fabi
  • 1
  • 2
-3
votes
1 answer

Program running mkfifo doesn't work

I'm trying to make a named pipe on c under linux using the mkfifo command. But when I run the program, I either get a "no such file or directory" error or absolutely nothing (console doesn't display anything) Here is my code : #include…
Thomas Levan
  • 3
  • 1
  • 2
1 2 3
15
16