4,850 questions
-1
votes
1
answer
44
views
Electron IPC: File objects arrive as empty objects {} in main process
Problem
I'm trying to send multiple files from the renderer process to the main process using Electron's IPC, but the file objects arrive empty.
Renderer Process:
if (files?.length > 1) {
window....
2
votes
0
answers
94
views
Too big a latency of ping-pong between two IPC processes on Sapphire Rapids Xeon with plain loads and stores, instruction order makes a big difference
I am running simple Ping/Pong between two processes A, B with shared memory:
shm_A and shm_B are in separate cache lines. Allocated with separate calls to shm_open, so probably in different pages, ...
-5
votes
1
answer
110
views
File, one writer-process, lot of reader-process. GNU Linux [closed]
File, one writer-process, lot of reader-process
Hello. Could you please clarify if I understand correctly that this code doesn't guarantee that TestValue will always be read from the file? The goal ...
1
vote
0
answers
53
views
Can't a custom netlink protocol be bound by the application process via the bind method?
I'm attempting to receive kernel messages in a userspace program via a custom Netlink protocol. For example, obtain the plug-in and pull-out status of the DP interface and the information of the ...
3
votes
2
answers
167
views
IPC delay from main process to renderer with Claude Integration [closed]
I have written a simple Electron Project with Claude integration.
Idea here is to use Claude-code npm package to access terminal and make the query to claude to get the required results and display it ...
3
votes
2
answers
202
views
In Linux, can I make a file unchangeable while the process creating it is running while removable if the process has been terminated?
My initiative here is to make a detection mechanism on process status by a "file lock".
Say I am developing a program in user mode. It will be inappropriate for some sources to be shared ...
-2
votes
1
answer
75
views
How to run a continuous bash program and have C start it, get input, and send it output, then gets it's input and then send it output [closed]
I've searched around and couldn't quite find and answer to this.
I'm trying to get C to open a bash program called L.
The I want to be able to run the program using something close to system or popen.
...
2
votes
2
answers
202
views
Can't make `future` work in parallel and concurrently on several (logical) cores
Within a Shiny app, a task that is triggered by a button is taking quite a long time to complete (synchronous sequential code).
That's why I want to split this task over several (logical) cores of my ...
0
votes
1
answer
46
views
Not to update form after IPC
I'm developing a webapp on Liferay with JSF Primefaces. I have Portlet 1 and Portlet 2 on the same page. I wish to update a component on the UI in the Portlet 1 after a button is clicked in Portlet 2.
...
1
vote
1
answer
61
views
Android ContentProvider returns null cursor when accessed from second app but works within provider app
Communication Between Two Android Apps Using ContentProvider Not Working
Problem Statement
I'm trying to share data between two separate Android applications using a ContentProvider. App A provides ...
0
votes
0
answers
40
views
How to use socketio and ipc together in python
I am trying to building an server that communicates with the client using socketio protocol, Now the server starts multiple application as a sub processes, the server communicates with this ...
3
votes
2
answers
187
views
C++ portable IPC
I am porting a console application that was written in C targeting Linux. I want to make the code as portable as possible, so that it can also be used on Windows and other OSs. So far, I was able to ...
0
votes
0
answers
15
views
Android Service Client to listen for Service Server response
I am trying to implement a Bounded Service and Client architecture in Android as an Echo Service where a service echoes out whatever the Client sends while appending a echo. prefix.
I am able to get ...
2
votes
1
answer
86
views
Reading from a pipe immediately after opening it
I wanted to launch an executable from a parent process. Wait until that process is finished, then read back what it wrote into stdout. It turns out you can't wait for the program to finish and then ...
4
votes
1
answer
128
views
Shared memory disappears after writer process finishes, even though shmctl is not used to remove it
I am using System V shared memory in my program. The writer process successfully creates the shared memory using shmget(). When the writer process ends, I notice that the shared memory segment ...