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.

0 votes
2 answers
80 views

Split named pipe into two ends: One read only, one write only

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
293 views

Communicate with UNIX sockets opened by dbus-daemon

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
29 views

What is needed to enable RPMsg IPC on SoC

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
688 views

FIFO capture using cat not working as intended?

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
171 views

How to increase kernel parameter (`msgmnb`) for a systemd-nspawn container

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
  • 419
0 votes
1 answer
155 views

What is a{sv}(oayays)b dbus signature

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

check is Process is Alive from PID while handling recycled PID

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

How to trace on continuously running process?

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
119 views

How does local socket IPC work on a multi CPU system?

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,002
0 votes
1 answer
1k views

How to adjust the output of dbus-monitor?

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
193 views

What IPC is used between an application and a library in Linux?

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
726 views

Is it possible to listen to a signal for when a systemd service has crashed/restarted?

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 to list all object paths under a dbus service only usign dbus command-line utility?

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

bash IPC using named pipes

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,667
1 vote
0 answers
764 views

File locking from different therads of the same process, including for Solaris OS

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

15 30 50 per page
1
2 3 4 5
8