Skip to content

sinden: virtual-sindenlighgun-add fixes#15885

Open
aderumier wants to merge 3 commits into
batocera-linux:masterfrom
aderumier:fix-sinden-udev-minimal
Open

sinden: virtual-sindenlighgun-add fixes#15885
aderumier wants to merge 3 commits into
batocera-linux:masterfrom
aderumier:fix-sinden-udev-minimal

Conversation

@aderumier

Copy link
Copy Markdown
Contributor

3 small fixes for sinden. details are in each commit.

The guard tested ${ACMDEV}, which was always at least "/dev/" (basename
of an empty string is empty), so it was always true and mono-service
could start with SerialPortWrite="/dev/". Test the find result ${ACM}
instead and only then compute ACMDEV.
The backgrounded mono-service inherited stderr (and stdin) from the udev
pipe, keeping the event "in flight" until udev timed out and SIGKILLed
the worker, leaving a [virtual-sindenl] <defunct> zombie. Redirect
mono-service stdin/stderr (and evsieve stdin) to /dev/null so the worker
sees EOF and the event completes promptly.
The lock dir was only removed via unlockAndExit, so a signalled/killed
handler leaked it and wedged the gun until reboot (the next replug spins
in trylock then gives up). Add a TERM/INT/HUP trap that releases it.
@dmanlfc

dmanlfc commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

@Tovarichtch please confirm

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.

2 participants