sndio/sndiod
Alexandre Ratchov f29a76bc19 On error, drop clients and close the device only if it's still open
Fixes crashes when USB devices are disconnected, caused by an attempt
to close the already closed device: it was closed once when its ref
counter drops to zero (after the last client is disconnected) and once
with an explicit call to dev_close() on the error code-path.

The same pattern was used for MIDI ports, it's fixed as well.
2020-06-12 17:26:38 +02:00
..
Makefile.in Rename siomix -> sioctl, stop using "mixer" word. 2020-01-03 15:19:25 +01:00
abuf.c merge head 2016-01-26 10:23:38 +01:00
abuf.h Remove unused arguments of dev_adjpar(), getbasepath() and all 2016-03-23 07:40:54 +01:00
defs.h Rename siomix -> sioctl, stop using "mixer" word. 2020-01-03 15:19:25 +01:00
dev.c On error, drop clients and close the device only if it's still open 2020-06-12 17:26:38 +02:00
dev.h On error, drop clients and close the device only if it's still open 2020-06-12 17:26:38 +02:00
dev_sioctl.c Make sure devices are properly closed in case of an error 2020-04-24 13:35:33 +02:00
dev_sioctl.h bump copyright year 2020-02-24 07:00:49 +01:00
dsp.c Clear resamp state array with memset. From miko@. 2018-09-26 13:36:42 +02:00
dsp.h sndiod: simplify the resampling routine 2018-06-08 08:23:22 +02:00
file.c Initialize nfds fields of new file structures. 2019-11-27 09:04:04 +01:00
file.h merge head 2016-01-26 10:23:38 +01:00
listen.c Remove unused #include <sys/signal> 2019-09-05 09:05:33 +02:00
listen.h merge head 2016-01-26 10:23:38 +01:00
midi.c On error, drop clients and close the device only if it's still open 2020-06-12 17:26:38 +02:00
midi.h On error, drop clients and close the device only if it's still open 2020-06-12 17:26:38 +02:00
miofile.c On error, drop clients and close the device only if it's still open 2020-06-12 17:26:38 +02:00
miofile.h Allow switching between devices without disconnecting clients, again. 2019-09-21 06:53:34 +02:00
opt.c sndiod: replace the gloal opt list with per-device lists. 2018-06-10 22:50:35 +02:00
opt.h sndiod: replace the gloal opt list with per-device lists. 2018-06-10 22:50:35 +02:00
siofile.c On error, drop clients and close the device only if it's still open 2020-06-12 17:26:38 +02:00
siofile.h Allow switching between devices without disconnecting clients, again. 2019-09-21 06:53:34 +02:00
sndiod.8 If no -f options are used, expose first 4 midi(4) devices to sndiod clients 2020-04-30 19:06:13 +02:00
sndiod.c If no -f options are used, expose first 4 midi(4) devices to sndiod clients 2020-04-30 19:06:13 +02:00
sock.c sndiod: Record if a client belongs to a session 2020-04-30 16:33:08 +02:00
sock.h sndiod: Record if a client belongs to a session 2020-04-30 16:33:08 +02:00
sysex.h use 0x7F as dev numer in sysex 2013-12-10 20:00:36 +01:00
utils.c Merge xxx_openlist() changes from cvs. 2020-01-23 12:50:20 +01:00
utils.h Merge xxx_openlist() changes from cvs. 2020-01-23 12:50:20 +01:00