7,611 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
65
views
Lifecycle Management: Safely Unsubscribing from HttpClient in Root-Provided Angular Signal Services [closed]
I am implementing a modern state management pattern in Angular (version 16+) where a dedicated service acts as a state facade, integrating traditional RxJS asynchronous operations with the new Signals ...
2
votes
2
answers
80
views
Race condition between signal and pthread_cond_wait
Given
volatile int stopping = 0;
void handler(int) {
stopping = 1;
}
int main(int, char **) {
pthread_sigmask(BLOCK, [INT], ...);
pthread_create();
pthread_sigmask(UNBLOCK, [INT], ......
0
votes
0
answers
41
views
Monitor sigprocmask calls with Syscall User Dispatch?
I'm using prctl(PR_SET_SYSCALL_USER_DISPATCH, ...) to enable Syscall User Dispatch with a SIGSYS handler that gets called when the application issues any syscall. The prctl() call also marks the code ...
-1
votes
1
answer
84
views
Spectral Leakage in Resampled FFT (and how to fix it)
I have a 10 second signal of a pure 50 Hz sine wave sampled at 40.96 kSa/s (409,600 samples). I apply a Hanning window and the magnitude plot of my (numpy) FFT shows (ignoring negative image ...
1
vote
0
answers
43
views
Angular table fails to update after CRUD success
My app uses a facade service (singleton injectable) with signals for state management and RxJS for API calls.
I'm experiencing an inconsistent UI update problem with a table after a successful create ...
0
votes
1
answer
133
views
strange pthread and posix signal application behaviour
I'm having troubles understanding the behaviour of the following application.
There are 3 threads:
worker thread with an infinite loop which locks the mutex, modifies a global variable but in the end ...
-1
votes
1
answer
147
views
Why do the values in the labels keep changing as the candle moves?
I have some signals that are generated through logic within my indicator. They are plotted as "dots, triangles, or arrows" or other shapes. What I wanted was a way to "monitor" the indicator signals. ...
1
vote
1
answer
95
views
Understanding behavior of DBus with respect to killing the process that used DBus to register a name
Take this simple program in Haskell
{-# LANGUAGE OverloadedStrings #-}
import Control.Exception (finally)
import Control.Monad (forever)
import Xmobar (tenthSeconds)
import DBus.Client
startServer' :...
2
votes
1
answer
97
views
Catch mouse enter and leave signals from AppplicationWindow in GTK4 Python
I'm creating a Gtk4 app in python 3 and I want to trigger a state change when the user mouses over the ApplicationWindow but I'm banging my head against a wall trying to figure out what signal string ...
5
votes
1
answer
83
views
Why it is not possible to trap SIGQUIT in Bash in docker build?
Kindly consider the following dockerfile that uses bash image and runs a bash to trap QUIT and then shows that QUIT trap. It should show the string "something".
ARG VERSION=latest
FROM bash:$...
1
vote
1
answer
108
views
futex_wait inside a signal handler
So I am trying to understand if I am missing anything about calling futex_wait inside a signal handler for a SIGSEGV access violation. Ostensibly, it is not on the list of async-signal-safe calls, ...
0
votes
1
answer
102
views
NgRx computed not Update Value when used in NgRx Store
I have a computed in my signal store, which should react on a value change but it just fires 1 time at creating and not when signal values are changing
const initialData = {
gridItems: [] as ...
2
votes
1
answer
107
views
`pthread_kill` randomly send signal to the wrong thread on MacOS
I have multiple threads performing sigwait on the same signal, and the main thread will wake specific thread up via pthread_kill. On Linux the program runs fine, but on MacOS the wrong thread will be ...
5
votes
2
answers
279
views
Signal handling in multi-threaded scenario [closed]
I'm trying to revive Hemlock, which now appears abandoned (original author has been absent for some time now). Mostly this has been a straightforward process of clearing out the bit rot, but I'm now ...
0
votes
0
answers
26
views
fastapi workers die in add_basemap
I have a problem with add_basemap from contextily. (I'm new to this to be honest)
I use fastapi in docker with workers=4, and contextily to make images.
In random time it die add_basemap (I don't know ...