Skip to main content

All Questions

Tagged with
3 votes
1 answer
140 views

Why is a FIFO pipe on macOS ~8x slower than an anonymous pipe?

On an M1 Max, I have created a FIFO named pipe with mkfifo and am testing write/read performance with a simple C program and pv. The program writes 65536 bytes at a time to stdout. When doing ./writer ...
edaniels's user avatar
  • 778
2 votes
0 answers
75 views

How do I print a matrix in a window using ncurses?

My program reads through a named pipe a two-dimensional matrix that contains a maze and my objective is for it to be printed in a top window using ncurses, but it is not working. Note: The maze is ...
João Simões's user avatar
1 vote
0 answers
210 views

Shared Memory vs Named Pipe comparison gone wrong: pipe is faster?

I have taken a course related to IPC in POSIX around 1.5 years ago and we made a benchmark to compare two communication method of 1.named pipes and 2.shared memory(with a circular buffer). We create ...
EbruB's user avatar
  • 11
0 votes
0 answers
78 views

FIFOs: writting without reading. Where did the bytes go?

I have the following two programs, a reader and a writer. The reader opens a named pipe (previously created with mkfifo fifo.txt) in read-only mode, sleeps for 15 seconds, and then closes the pipe (...
ABu's user avatar
  • 11.4k
1 vote
2 answers
752 views

Is there a way to open FIFO(named pipe) in write-only way without blocked

I use FIFO in my server. Due to some limitations, I have to open the FIFO in write-only firstly, then I use fork to create another process to open FIFO in read-only. But I find that, it will be ...
Klen's user avatar
  • 23
0 votes
1 answer
114 views

How to create NamedPipe as LocalSystem account that can be connected to by normal users

I am able to create a NamedPipe on Windows that clients can connect to and everything works fine, but when I create the pipe as LocalSystem user, my "normal" users cannot connect to it ...
Daniel's user avatar
  • 27.9k
0 votes
1 answer
273 views

ReadFile returns 233 reading from a Named-pipe which CreateProcess output is redirected to

I'm trying to run a command using CreateProcess and redirect STDOUT to a named-pipe created on the same machine(server) which the client is connected to and is going to receive the output data. Named-...
zbx0310's user avatar
  • 64
1 vote
1 answer
69 views

Application get 100% CPU after first fireing of GTK3 g_io_add_watch() of a named pipe

I'm making the following application which watches a named pipe named "info" and update label text with the provided string by this named pipe. #include <gtk/gtk.h> GtkWidget* label; ...
Ueda Takeyuki's user avatar
0 votes
1 answer
106 views

C Named pipes reading wrong value

I was writing a code in which I created two processes, handler.c and calculate.c, which communicate using a named pipe. The handler.c recieves the operands and operator as command-line arguments and ...
Qaisar Mateen's user avatar
0 votes
3 answers
640 views

c - how to pass variables from parent process to child, back to parent then to the same child etc, multiple times in c?

I'm a beginner and I'm still starting to learn about forks and pipes in C. I'm trying to create a create one parent process and ONE child process that repeatedly pass variables to one another. parent1 ...
eshtabel3asal's user avatar
1 vote
0 answers
74 views

Named pipe (FIFO) halts execution when read and write are called

Trying to create a process ring using named pipes for an assignment, and whenever I call read/write to those files it pauses the execution at that point. I've tried everything I could find for hours ...
ntsay's user avatar
  • 11
0 votes
0 answers
66 views

Why is my program printing the memory address instead of the value I'm passing through named pipe?

I'm having trouble sending values from my named pipe to the parent and child processes. I inserted a value, 22, just to test it and I keep getting what looks like the address of the integer. #include &...
Michael's user avatar
  • 21
0 votes
1 answer
286 views

C language pipe between 2 child processes blocks indefinitely

I am trying to make a program to takes a command including pipes and then executes it. This is a simplified version of it where I'm trying to pipe the ls and wc command: #include <stdio.h> #...
Labeeb's user avatar
  • 31
1 vote
2 answers
271 views

Undefined behavior when reading from FIFO

I am trying to send data from javascript to C via a named pipe/FIFO. Everything seems to be working other than every couple messages there will be an additional iteration of the loop reading 0 bytes ...
akremer's user avatar
  • 125
0 votes
1 answer
816 views

Named pipes for client-server simulation in 2 terminals

I know the title doesn't explain the problem precisely and I apologize. I've been writing a program in C of named pipes and the goal of it is to open 2 windows of the terminal, each running either the ...
Chefi's user avatar
  • 41

15 30 50 per page
1
2 3 4 5
20