18,237 questions
-3
votes
0
answers
56
views
In recent .NET Core, VirtualMemorySize64 looks like nonsense [closed]
The question is in the comments: (I am typing more text here only because the posting widget is demanding more details. All the info needed is in the comments.)
public static StringBuilder ...
0
votes
2
answers
93
views
Process does not terminating in Spring Environment and Spring boot application is not responding
I have created an endpoint which gets audio and images bytes as request parts
@PostMapping(value = "/videos",consumes = MediaType.MULTIPART_FORM_DATA_VALUE,produces = "video/mp4")
...
0
votes
0
answers
79
views
How to check if a process is suspended in VBS?
Edit: None, Status or ExecutionState are not implemented so I need an alternative way to check it, but I don't have any clue where I should look.
This is what I have:
Option Explicit
On Error Resume ...
1
vote
0
answers
68
views
Spawning a python subprocess and suppress output of it and its children
I'm running an utility for using kubernetes via the model context protocol. I can call it from the shell like this (using the uv tool utilities): uvx kubernetes-mcp-server --port 8080. I am spawning ...
-1
votes
1
answer
199
views
How can I monitor process creation/termination in C# using winapi? [closed]
I’m building a lightweight process monitoring tool in C# (.NET Framework 4.6.2).
Here’s my situation:
I cannot use WMI due to it's speed; (this is slow for antivirus app).
I also cannot rely on ETW (...
1
vote
0
answers
155
views
How to make a Windows process resistant to termination (like PPL)?
I'm looking for legitimate methods to make a Windows user‑mode process harder to terminate. PPL would be ideal, but Microsoft is very selective about who can use it. What alternative options or best ...
1
vote
1
answer
104
views
Calculate specific app's memory usage on C# [duplicate]
I’m trying to measure the RAM usage of a specific application using C# (.NET Framework 4.6.2).
I’ve already done some research and managed to get a result using Process.WorkingSet64,
but the value ...
1
vote
1
answer
122
views
Does an orphan process complete the task?
This is some simple code in C++ which uses the fork() function:
int main ()
{
int p;
int a,b;
p = fork ();
if (p==0)
{
cout<<"\nchild insert number:"<&...
0
votes
2
answers
136
views
correct cleanup of spawned child processes in golang
I am working on a project in go (which I am not very familiar with), that runs as a systemd process and spawns child processes, but whenever the systemd service is restarted, I see warnings (sometimes ...
0
votes
1
answer
119
views
How to accurately detect run time in linux?
I have a binary sample (VirusShare_00238010bb86fd0bf4014c3d19f114b2) used in my research that behaves oddly when I try to measure its runtime
When I run it directly with /usr/bin/time, it exits almost ...
0
votes
0
answers
105
views
Cannot execute commands in Android -- Runtime.getRuntime().exec()
I am using Android Jetpack Compose to build a little app, and don't seem to be able to run terminal commands.
I have tried the following:
val cmdExample1 = arrayOf("sudo", "apt", &...
0
votes
0
answers
120
views
Can't write to user mode address space from kernel using MmCopyMemory
I've got this software based kernel mode driver (KMDF) and I've called MmcopyMemory like the following (see below). Essentially I would like to patch a user mode process in memory.
The two passed ...
0
votes
1
answer
132
views
How are Kubernetes control plane components started when they run as static Pods?
I've been diving deep on my learning Kubernetes clusters. I want to know how kubeadm starts up each control plane component and in what order?
After reading the Kubernetes documents, I wasn't sure. ...
0
votes
2
answers
105
views
PowerShell Get-Process not working correctly when we have multiple instance of process
I am trying to record CPU and memory utilizations of processes running in my window server using PowerShell. Script is running well but I am not getting anything if Mutiple process are running with ...
0
votes
0
answers
42
views
Can I pass key presses from LLDB to attached process running on its own separate terminal?
I've a command line process (https://mpv.io) running on its own terminal window on macOS. I'm attaching to it via an ssh'ed lldb -p <PID> and want to be able to control said app via key presses ...
1
vote
1
answer
83
views
What are the basic rules for propagating lists and dictionaries across processes using the Manager of the multiprocessing module?
I am trying to use the multiprocessing module to parallelize a CPU-intensive piece code over multiple cores. This module looks terrific in several respects, but when I try to pass lists and ...
0
votes
1
answer
117
views
InstallShield setup stuck when run within a process
I am developing an application that is supposed to run a setup and then write configuration files in certain folders. The issue is about the setup. It is an old setup that install through a series of ...
1
vote
2
answers
153
views
Rust invoke Java server via Maven on Windows without "Terminate batch job" message when stopped
I'm writing a CLI in Rust, and I want it to work on Windows or Linux. I want it to invoke Maven in order to run a Java program. I already have this working in a Bash script that I can invoke via Git ...
1
vote
1
answer
53
views
Why cannot assign a window title to a background python process
I have a very simple python script inifinity_loop.py:
import time
i = 0
interval = 5
while True:
print(f'I am counting {i} seconds')
time.sleep(interval)
i += interval
and I want to ...
-2
votes
1
answer
78
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.
...
0
votes
0
answers
37
views
Details about mid-execution python process
For context, I'm helping peers attribute stock tickers to a number of text sample. I'm currently opening a connection to gemma3.1:1b and asking the LLM to attribute a ticker or None per text sample. I'...
0
votes
1
answer
189
views
Java Process.waitFor() does not wait
I am following a book on Java 'Java: The Complete Reference, 11th Edition" which has the following code
class ExecDemoFini {
public static void main(String args[]) {
Runtime r = ...
0
votes
0
answers
76
views
Changing tkinter elements from other files in python
I am trying to change tkinter elements from other python processes (in seperate files).
Is it possible to do so without restarting the start.py GUI window from end.py due to the import start in my ...
-2
votes
2
answers
119
views
Why do i need to use rising_edge in this VHDL code? [duplicate]
so what is the difference between these two vhdl programs:
process(clk)
begin
if(clk=1)
q<=d;
end if;end process;
and this one:
process(clk)
begin
if(rising_edge clk)
q<=d;
end if;end ...
0
votes
1
answer
116
views
Wait for Application running and wait until finished async/task
I have a Windows Forms App, that will in the end launch a SteamApp. I want my App to wait until the Game is found and when it's closed to do some more stuff.
So in short lauch SteamApp and then wait ...
0
votes
1
answer
79
views
Does DMA play a role in process loading (from disk to memory)?
I’m trying to understand how operating systems load a program into memory from a hardware perspective.
I know that DMA (Direct Memory Access) is used for I/O operations, allowing data transfer between ...
2
votes
2
answers
100
views
`write(dev_null, addr...)` to check validity of virtual memory address `addr` using `errno=EFAULT` fails
My question is based on the solution suggested to a similar question.
Suppose I have an arbitrary virtual address. The solution asks to try writing to "/dev/null" with that virtual address ...
0
votes
0
answers
61
views
Running a Web API as a Process with a real tcp socket .NET
I am trying to run a test for my project that will need the whole API app to run by using process to start and run the application on a real TCP socket for eventual pact testing.
The API seems to ...
0
votes
0
answers
69
views
C# and Winforms: show an external process form inside a local form
I'd like to create a .NET 8 app, but I need to use Crystal Reports as reporting engine. Unfortunately CR doesn't support .NET Core.
I think that my best option is to create an external .NET 4.8 ...
0
votes
1
answer
58
views
Swift code to convert .py files to .mpy using mpy-cross
So I thought I'd have a bit of fun writing a small app in Swift to batch convert .py files to .mpy, using mpy-cross. mpy-cross works fine from the command line - it takes a .py file and outputs a new ....
0
votes
0
answers
54
views
How can I change the executable in sys_execve()
I'm trying to replace "/usr/bin/echo" by "/usr/bin/ls" in sys_execve(), the modified code is the following.
SYSCALL_DEFINE3(execve,
const char __user *, filename,
...
2
votes
0
answers
116
views
Will passing the file descriptor of a socket to a child process still work correctly?
I am new to network programming. I am on Linux, and I am using C++, the sockets API, and process API. I am trying to understand if what I am trying to do is possible or not.
The goal of my program is ...
1
vote
0
answers
40
views
How to Properly Stop a GNU screen Session and Ensure All Running Processes Are Killed?
I’m using GNU screen to run a service, but when I stop the session, the processes running inside it are not always terminated properly. This results in ports remaining occupied and prevents the ...
2
votes
2
answers
116
views
Powershell script to kill it after it runs AND capture standard output
I have an executable that does a bunch of processing and then waits for a keypress. I'm trying to run this Powershell script from the Windows scheduler. Here's my original attempt:
$logFile = "...
0
votes
0
answers
83
views
Kong nginx worker process consumes close to 100 Mb memory when idle
We are using kong api gateway and there are no active users for our module with kong as it’s not yet in production. Still simply running the kong api gateway, its nginx worker process consumes appr. ...
0
votes
1
answer
69
views
start a process in the host from docker container [duplicate]
As title suggests, I was interested into making a process start directly on the host, called inside a Docker container.
Do you have any idea on how I could accomplish this goal?
To be more precise, ...
3
votes
0
answers
83
views
How to Properly Exit Main Process from a Thread in C? [closed]
I am working on a C program that simulates a hair salon, and I'm facing an issue with terminating the main process from the simulation_timer_thread. The only way I can successfully exit the main ...
0
votes
0
answers
37
views
In case spawn of electron, I can't see output of process in realtime
I'm beginer of electron, and I learned I can execute external program with spawn function.
But, when I execute external program, I can't see output data of the program immediately.
This is my external ...
0
votes
0
answers
38
views
Ger current command in Deno
I'm running my deno program like this
deno task dev
which corresponds to
deno run --allow-all --watch src/server/main.ts --watch-client
Within my main.ts I want to get the current full Deno command, ...
5
votes
1
answer
339
views
SIGQUIT in child process does not produce core dump despite status showing a core dump was produced
this behaviour has been driving me crazy, lately, though there is probably a reasonable explanation, maybe even a fix.
I am currently learning C and have to write my own shell in school and was ...
2
votes
0
answers
62
views
python exe keeps running after calling os.kill and sys.exit(0)
I implemented a web app for visualizing test data to charts.
When the app starts to run, it opens a tab in the browser and shows data.
I build .exe with parameters --windowed for not having console ...
0
votes
0
answers
26
views
How to Convert this CMD line to System.Diagnostics.System ProcessStartInfo.Argument
I have this command line that someone helped me with:
type "\\NetworkDriveLocation\Folder\test.pdf"|find "pdf:Keywords"
I want to execute this in C# using System.Diagnostics....
4
votes
0
answers
112
views
How do I launch a process in C# on Linux where the launching process can end without killing the child process?
I have a C# app that runs in Linux. It must, at some point, start another app as a separate process, and then exit itself.
Every time I try to do this, the new process dies with the old one. I've ...
2
votes
0
answers
117
views
How can I kill a long running process when my MacOS app is terminated?
Within my Mac application, I start a long running process (a local server) as so:
let process = Process()
process.launchPath = "/bin/zsh"
process.arguments = ["-c"] + ["'\(...
-2
votes
1
answer
138
views
Why does launching socat with some arguments result in two processes? [closed]
Open 3 terminals, which I'll call A, B, and C, and execute the following:
socat TCP-LISTEN:12345,fork - in A,
pidof socat in B,
socat TCP-CONNECT:localhost:12345 - in C,
pidof socat again in B.
Step ...
0
votes
0
answers
61
views
pwntools [Errno 24] Too many open files [-] Starting local process
I'm having an issue with some code I'm writing. I'm getting this pwntools error about too many files being open.
My code looks like.
for a in range(0,2**3360):
try:
with open(&...
3
votes
2
answers
740
views
How do I get all the open handles of a process using PowerShell?
When investigating what files a process is currently actively working with, I can use tools from Sysinternals like handle.exe or procexp.exe and then look for names looking like file patterns.
But ...
0
votes
0
answers
71
views
Check if a standard Windows user is launching an application with Run as Administrator option using Windows service
I've a custom Windows service (written in C#) which basically I'm using for whitelisting or blacklisting Windows applications. I don't want to use any existing Windows functionality or any commercial ...
0
votes
1
answer
25
views
Can parent shell be considered background process group in the context of Linux session?
I opened a terminal and executed the following commands:
$ sleep 100000 &
$ sleep 100000 &
$ bash -c '{ sleep 100000 & } && cat && sleep 500000'
Now I have this process ...
1
vote
1
answer
312
views
ASP.NET Core 9 hangs in docker container while running sub-processes
I have an ASP.NET Core 9 application running in a linux docker container.
Made using this dockerfile:
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
WORKDIR /app
# Install base components
RUN apt ...