Skip to main content

Questions tagged [ipc]

Inter Process Communication usually refers to kernel services that allow processes on the same machine to communicate with each other.

Filter by
Sorted by
Tagged with
0 votes
2 answers
169 views

I'm trying to set up some inter-process communication, and as a first idea I want to use a named pipe to forward messages from one process to the other. The thing I'm getting stuck on is ensuring that ...
Joseph Camacho's user avatar
0 votes
1 answer
728 views

I'm trying to learn how to interact with message buses under Linux, and doing so with shell commands that doesn't involve utilities packaged under dbus-*. For this instance, I want to understand how ...
PatXio's user avatar
  • 1
1 vote
0 answers
52 views

I am working with an Intel SoC with a Hard Processor System (HPS), an Arm 64 core, and an FPGA fabric with a Nios soft processor. I would like to implement message passing between these two processors ...
user667370's user avatar
7 votes
1 answer
720 views

Hi I am trying to use a Unix FIFO to communicate between a Python script and a shell script. The intention is for the shell script to capture all output of the python script. So far I have the ...
First User's user avatar
0 votes
1 answer
271 views

I have a systemd-nspawn container in which I am trying to change the kernel parameter for msgmnb. When I try to change the kernel parameter by directly writing to the /proc filesystem or using sysctl ...
Yeow_Meng's user avatar
  • 429
0 votes
1 answer
198 views

I'm trying to invoke CreateItem method on org.freedesktop.secrets dbus service. busctl --user call org.freedesktop.secrets /org/freedesktop/secrets/collection/login org.freedesktop.Secret.Collection ...
a001's user avatar
  • 3
0 votes
2 answers
2k views

From what I seen online you call kill method in c++ in order to see if the process is alive. the issue with that is PID's get rycled and the same PID your looking for may not be the same process. I ...
joseph lake's user avatar
0 votes
1 answer
1k views

So I wanted to know how files are opened by zsh like .xinitrc, .xprofile, .zprofile, and exactly in which order. So I have decided to strace on zsh process with the grep command to see how the open ...
Visrut's user avatar
  • 137
0 votes
1 answer
144 views

There is the Supermicro X10DAi motherboard and the manual is here. On page 1-11 you can see that each CPU has it's own RAM. Let's say program A is offering an API through a local socket /var/run/...
zomega's user avatar
  • 1,022
0 votes
1 answer
1k views

I'm building a microservices application using the GNU tools and bash and I decided to use dbus-monitor and dbus-send for IPC between services. The problem is that it's hard to make use of the ...
CyberWizard's user avatar
2 votes
1 answer
228 views

When you have a Linux application that depends on a library (dynamically-linked), how does the application communicate with the library? What inter-process communication method is used?
Noob_Guy's user avatar
  • 224
0 votes
1 answer
821 views

This is a bit of a newbie question on systemd services, but let's say we have two systemd daemons, and for one of them its important to know whether the other one has crashed or restarted. Is it ...
Kaptain's user avatar
2 votes
1 answer
5k views

How can I list the object path under a dbus services using ONLY dbus-send command line utility? For now, I can only list services: dbus-send --system --dest=org.freedesktop.DBus --type=method_call --...
Luis's user avatar
  • 21
2 votes
1 answer
2k views

Consider the below script #!/usr/bin/bash chan=/tmp/pipe.$$ mkfifo $chan { for x in a b c d e do echo $x > $chan done } & for y in 1 2 3 4 5 do x=$(cat $chan) echo &...
balki's user avatar
  • 4,737
1 vote
0 answers
826 views

I need to perform a file lock when accessing a file from C/C++ code with the following requirements: Blocking should be performed when access occurs not only from different processes, but also from ...
ibse's user avatar
  • 371
-2 votes
1 answer
352 views

WaitForMultipleObjects is one of several Windows kernel functions that can suspend and synchronize a calling thread with other threads until resources or etc are available, similar to flock in Linux, ...
Codemeister's user avatar
0 votes
1 answer
241 views

Is there any way to redirect stdout (1) from that "pipe" (I don't know exacly how I suppose interpret this, I will be glad if someone could explain how to treat this, or give me some read on ...
rozumir's user avatar
  • 103
1 vote
0 answers
951 views

I'm learning docker and wanted to see the API commands sent by the client to the docker server/engine. I know that the communication between the two processes happens via /var/run/docker.sock. Is ...
sudeepdino008's user avatar
1 vote
0 answers
330 views

I have been studying this excellent Caltech lecture regarding the signal delivery mechanism, which talks about how current process state (stack, RIP etc) at the time of the signal generation is copied,...
Wad's user avatar
  • 195
0 votes
1 answer
4k views

Obviously O_CREAT and O_EXCL are not required when opening an existing semaphore. O_CREAT is required when creating a new semaphore. O_EXCL is only meaningful when OR-ing with O_CREAT, specifying that ...
Andy Lin's user avatar
  • 121
2 votes
1 answer
7k views

When I run ipcs -m I get below info ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x00000 38699014 user 700 8125440 2 dest 0x00072 2064391 ...
Inquisitive's user avatar
1 vote
1 answer
732 views

I'm developing a backend service. The backend contains some processes, meaning that when a client sends a request to my server, the request will go through these processes. For example, a request will ...
Yves's user avatar
  • 3,411
0 votes
0 answers
203 views

The Linux Programming Interface summarizes UNIX/Linux IPC facilities for communication and synchronization Is there dependency between any of the facilities? Either between their interfaces or their (...
Tim's user avatar
  • 107k
0 votes
1 answer
2k views

I'm using vagrant to emulate services with network communication. My base box is the ubuntu/bionic64. The application that I'm porting to the VM is written in C++ and binds to ipc addresses as follows:...
hao123's user avatar
  • 103
1 vote
1 answer
264 views

I'm learning how to use Message Queue in Linux and I've found a simple example: https://www.geeksforgeeks.org/ipc-using-message-queues/. With the reader and writer in this link, I can read and write ...
Yves's user avatar
  • 3,411
-2 votes
1 answer
1k views

When a process fork() a child, the two processes are related. The child inherits a lot of things from the parent, including some IPC objects such as pipes and anonymous memory mappings. If the child ...
Tim's user avatar
  • 107k
0 votes
1 answer
2k views

In Linux, when using mmap() for anonymous memory mapping, or using malloc(), do they allocate "space" from only physical memory, or either physical memory or swap or their combination? (I ...
Tim's user avatar
  • 107k
0 votes
1 answer
86 views

There are three processes: A "control program", call it CP. CP launches a manager process, call it MP. MP launches a worker process, call it WP. CP is the only program I can modify. All ...
spraff's user avatar
  • 961
0 votes
2 answers
170 views

Background When a SIGHUP is sent to a running nginx master process to reconfigure, if there're password encrypted certificate key, nginx(specifically the openssl library) will ask for input, as in the ...
dotslashlu's user avatar
5 votes
1 answer
4k views

I'm trying to access a process' stdio streams from outside its parent process. I've found the /proc/[pid]/fd directory, but when I try $ cat /proc/[pid]/fd/1 I get a No such file or device error. I ...
J-Cake's user avatar
  • 229
0 votes
1 answer
782 views

I'm trying to write a little chess program - actually more of a chess GUI. The chess GUI should use the stockfish chess engine in the background when the player plays against the computer. I got ...
gm123's user avatar
  • 3
0 votes
1 answer
538 views

Suppose that, at time (1), I create a named pipe using Python with the goal that eventually this Python process would write something to that named pipe. Why? Because, at time (2), there is another ...
caveman's user avatar
  • 173
2 votes
1 answer
4k views

I have a parent process (client) talking with a child process (server) over Unix Domain sockets (aka IPC Sockets). The sockets are created using socketpair() and are of type datagram. I use ...
Droopycom's user avatar
  • 141
2 votes
1 answer
2k views

Can we bind a Unix domain socket to any random existing file ? If no, how do you recognize a file that is used by a socket ?
mistergreen's user avatar
1 vote
1 answer
1k views

I am trying my hand on Linux Signals. Where I have created a scenario mentioned below: Initially block all SIGINT signals using sigprocmask(). If sender send SIGUSR1 signal then unblock SIGINT for ...
MankPan's user avatar
  • 77
3 votes
1 answer
216 views

In a shell script I can use: ipcmk -S 4 To create a semaphore with 4 slots. With ipcrm I could delete the semaphore again. But how can I use it? I cannot find any semwait, ipcsemget or similar. How ...
Harald's user avatar
  • 1,040
2 votes
1 answer
3k views

In Linux there are various ways for inter process communication, for example, shared memory, (named) pipe, socket, message queue. What are equivalent or similar ways in which Linux kernel and ...
Tim's user avatar
  • 107k
2 votes
1 answer
899 views

We're implementing an embedded Linux system and have to provide a live updating graph on a website that shows data coming from a background process in the system. The question is how to optimally ...
Larsp's user avatar
  • 33
3 votes
2 answers
3k views

When I look at journalctl, it tells me the PID and the program name(or service name?) of a log entry. Then I wondered, logs are created by other processes, how do systemd-journald know the PID of ...
炸鱼薯条德里克's user avatar
0 votes
1 answer
2k views

So when I run $ ipcs, the shared memory segment section returns a variety of results: ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status ...
John Von Neumann's user avatar
1 vote
1 answer
4k views

I wish to send a command to process A, from process B, via a FIFO. The command will be a word or a sentence, but wholly contained on a "\n" terminated line - but could, in general, be a multi-line ...
Harry's user avatar
  • 834
2 votes
1 answer
145 views

From The Linux Programming Interface under "data transfer" under "communication", we have "byte stream", "message" and "pseudoterminal". Does pseudoterminal belong to byte stream instead, just like ...
Tim's user avatar
  • 107k
2 votes
1 answer
438 views

FIFO is problematic in use because both reader and writer have to open it – if one of them is being late, the other one is blocked inside the operating system. I have to implement a publishing ...
Digger's user avatar
  • 23
1 vote
1 answer
2k views

We have a kernel module that was building fine for RedHat family of Linux distribution, until the recent RHEL7.5. When trying to build on RHEL7.5, we've got an error of: ...error: ‘GENL_ID_GENERATE’...
Weishan Yang's user avatar
5 votes
1 answer
12k views

From APUE FIFOs can be used to duplicate an output stream in a series of shell commands. This prevents writing the data to an intermediate disk file (similar to using pipes to avoid intermediate ...
Tim's user avatar
  • 107k
4 votes
1 answer
11k views

If file descriptors are specific to each process (i.e. two processes may use the same file descriptor id to refer to different open files) then how is it possible to share transfer file descriptors (e....
benjimin's user avatar
  • 153
0 votes
0 answers
227 views

Currently Im implementing a shared buffer between user space processes. For that, I have a library which opens a client UNIX socket for the client processes to dump events into the server socket. My ...
Karthick's user avatar
1 vote
0 answers
282 views

Is it possible to use the same netlink socket for kernel - user space process and witin user space process communication??
Karthick's user avatar
1 vote
0 answers
1k views

I am new to IPC and am trying to implement a common buffer between kernel and user space processes. My design will be in such a way, I will have a library(in user space) where my client socket tries ...
Karthick's user avatar
0 votes
1 answer
120 views

I want to store the stdout from a process into a buffer and have the buffer emptied once read, FIFO style. I know that I can pipe the stdout, but the pipe/file will keep growing and contain data that ...
matt.baker's user avatar