sndiod: Don't add/remove server.device entries in dev_{open,close}()
authorratchov <ratchov@openbsd.org>
Sat, 1 Jun 2024 09:44:10 +0000 (09:44 +0000)
committerratchov <ratchov@openbsd.org>
Sat, 1 Jun 2024 09:44:10 +0000 (09:44 +0000)
commitc7bd5a5d4b7247670d81ed128edab08da5f09a89
tree5723e20162691fb6399f3599af4c23f93d81af34
parentf6fc4eaf77ac151fd4a18944c2d38a13e6bf5c05
sndiod: Don't add/remove server.device entries in dev_{open,close}()

Fixes server.device entries disappearing when usb devices are unplugged
while in use. Found, analysed and tested by Laurie Tratt, thanks!
usr.bin/sndiod/dev.c