From: izzy Meyer Subject: Re: audio/lmms: Fix memory corruption during MIDI input/output To: Alexandre Ratchov Cc: ports@openbsd.org Date: Fri, 25 Apr 2025 17:32:33 -0500 On Thu, 24 Apr 2025 15:33:18 +0200 Alexandre Ratchov wrote: > MIDI output and input are handled on different threads, so a mutex is > required to serialize access to the mio_hdl structure. > > This diff fixes disconnection from sndiod caused by corruption of the > mio_hdl structure. > > While we're at it, fix the input event loop to not stop if a signal is > received during poll(4). If so just recheck the m_quit flag and retry. > > OK? > Thanks for this fix Alexandre. I produce on OpenBSD using LMMS. Tested on amd64. Seems good from some minimal testing on my production machine. -- iz (she/her) > i like to say mundane things, > there are too many uninteresting things > that go unnoticed. izder456 (dot) neocities (dot) org