Re: midish does not exit on EOF/end of script

From: Alexandre Ratchov <alex_at_caoua.org>
Date: Sun, 16 Nov 2025 11:42:09 +0100
On Sat, Nov 15, 2025 at 11:12:28AM +0100, Iwan Briquemont wrote:
> Hello,
> 
> I noticed that midish 1.4.0 does not stop on the end of the script,
> while it used to in older versions.
> That's when running using midish -b
> As a workaround I add "exit" as the last command.
> 
> I saw it when trying to run the tests, it would block. I've patched it
> like this:
> 
> https://github.com/iwanb/nixpkgs/commit/75acc4ceafa116f5e5812e85dbc4fac7f2bf4f58#diff-8cffa2788389eaf00c8a41cb45de4816ced320731176205edb1759c81102becf
> 
> Similarly the smfplay and smfrec scripts require two Ctrl+C to exit,
> I've also added exit there explicitly.
> 

Hi,

There's an embarassing bug causing EOF to not be detected on Linux. In
summary, certain systems set POLLIN on EOF, others (including Linux)
dont and midish didn't handle it properly.

Anyway, the bug is fixed and backported to the last release. A new
release is available:

https://midish.org/midish-1.4.1.tar.gz

Thank you for analysing and reporting this!

--
Alexandre
Received on Sun Nov 16 2025 - 11:42:09 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 17 2025 - 01:30:01 CET