227,339 questions
-1
votes
0
answers
39
views
How to retrieve the original .vfat image size from a GPT disk partition? [closed]
I have a .vfat filesystem image created on a host machine and flashed onto a GPT disk partition on a target device. The partition (50 MiB) is intentionally larger than the .vfat image itself.
The ...
Advice
0
votes
0
replies
31
views
iMac Target Display Mode Source Options
I am looking to use a 2012 iMac 27” as a secondary display for my Linux PC. As I understand it, I can use the smc_util script on GitHub to enable target display mode on the iMac, but is the source for ...
1
vote
0
answers
64
views
Even with call to exec immediately following fork, child process dies with SIGSEGV
I am attempting to create a terminal emulator in C# (.NET 10.0) that can run on Linux (in this case kubuntu 25.10). As such, I must use the openpty API to obtain a PTY master/slave FD pair, and then ...
0
votes
0
answers
45
views
Am I hitting a Docker limitation? My application (couchdb) won't start inside docker container at >1 million folders [closed]
I am creating a Docker container that hosts couchdb 1.5.0 (for various reasons we cannot upgrade to a newer version). We want to migrate the host system to Ubuntu 24, while retaining couchdb inside a ...
-2
votes
0
answers
31
views
Why is TDengine taosd spamming logs with continuous cluster_info and grants_info checks in a single-node deployment? [closed]
I am currently running a single-node deployment of TDengine Enterprise Edition in a production environment and am noticing some unexpected behavior in the logs. The taosd process seems to be stuck in ...
Advice
2
votes
3
replies
74
views
How to restart a Docker Compose service if it stops producing stdout for 5 minutes?
I have a Docker Compose setup that uploads content to a server concurrently. Occasionally, the process gets stuck and stops producing any stdout output. When that happens, manually restarting the ...
1
vote
1
answer
98
views
After fork(), parent process terminates when child calls exec()
I am trying to write code that hosts a child process in a PTY. Doing this is not hugely more involved than just redirecting stdin and stdout, but there's a bit to it. Per the documentation:
You call ...
0
votes
2
answers
71
views
openssl sha256sum hash contains output file as part of input when using find command to list the files
In the below shell script function I am calculating the SHA-256 hash values using combination of find and sha256sum commands. But, when I do cat of generated hash file hashedoutput.sha256 it contains ...
Best practices
0
votes
6
replies
66
views
How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?
How do I write a program that alerts me when any app connects to the internet on Android or Windows?
My problem is my data subscription is getting drained. I don't know what apps are sucking it.
I can ...
4
votes
2
answers
125
views
Read just one byte with read() function from unistd.h
I'm trying to start a hangman project, and first I want to take care of how to get user letter from the terminal, I know I can read just one byte and store that value into a pointer's address with
...
1
vote
0
answers
69
views
Forcing Go to not use the gold linker
I'm trying to build a Go package in Flathub's CI for an aarch64 Linux architecture. The build is failing while compiling a C dependency:
# github.com/rclone/rclone
/usr/lib/sdk/golang/pkg/tool/...
Advice
0
votes
0
replies
90
views
Multithreading optimization - Thread pinning could cause thread starvation
In my C program I have a centralized work pool containing function pointers to the tasks to run. I create multiple threads (up to the total number of online CPUs) and each of them execute tasks from ...
0
votes
0
answers
53
views
EasyMockGenerate (Easymock tool) fails to parse ARM64 Linux kernel headers on x86 host (missing headers, arch types, asm issues)
I’m trying to use EasyMockGenerate to generate mocks for Linux kernel headers (v5.15), but I’m running into multiple issues when targeting ARM64 from an x86 host.
Goal:
Generate mocks for kernel ...
1
vote
2
answers
99
views
Laravel Octane + Native Docker + WSL2: Extreme Performance Issues
I'm experiencing severe performance issues with my Laravel application running on Docker + WSL2. Despite implementing numerous optimizations, all pages take 2-10 seconds to load. I'm hoping someone ...
-1
votes
0
answers
60
views
What causes `sqlite3_rsync` to produce "database disk image is malformed" on a target database [closed]
I have two small devices, A and B. Device A continuously reads and writes to a SQLite database in WAL mode called mydata.sqlite.
At regular intervals, a different process synchronizes this file from ...