Skip to content

Conversation

@exrok
Copy link

@exrok exrok commented Dec 20, 2025

This bug was found when alsactl was repeatedly failing due to a missing device causing a number of alsactl processes to be running.

This PR uses tokio's kill_on_drop and an added the process handle to a field in the device. I have not checked the rest of the code base for similar issues but at least after this PR alsa is fixed. :)

https://docs.rs/tokio/latest/tokio/process/struct.Command.html#method.kill_on_drop

This bug was found when alsactl was repeatedly failing due to a missing
device causing a number of alsactl processes to be running.

This PR uses tokio's kill_on_drop and an added the process handle to a field
in the device. I have not checked the rest of the code base for similar
issues but at least after this PR alsa is fixed. :)
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