Skip to content

uloop: use volatile sig_atomic_t for uloop_cancelled and uloop_status#44

Open
hauke wants to merge 1 commit into
openwrt:masterfrom
hauke:fix-ai-bugs-abi
Open

uloop: use volatile sig_atomic_t for uloop_cancelled and uloop_status#44
hauke wants to merge 1 commit into
openwrt:masterfrom
hauke:fix-ai-bugs-abi

Conversation

@hauke
Copy link
Copy Markdown
Member

@hauke hauke commented Apr 23, 2026

Both variables are written from signal handlers (uloop_handle_sigint) and read from the main loop. Using plain bool/int without volatile sig_atomic_t is a data race and undefined behavior. This matches the fix already applied to do_sigchld.

Both variables are written from signal handlers (uloop_handle_sigint)
and read from the main loop. Using plain bool/int without volatile
sig_atomic_t is a data race and undefined behavior. This matches the
fix already applied to do_sigchld.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
@hauke hauke force-pushed the fix-ai-bugs-abi branch from af014d5 to ec90cd4 Compare May 3, 2026 20:24
@hauke hauke marked this pull request as ready for review May 3, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant