In case anyone is curious: this was discussed on GitHub (https://github.com/mojolicious/mojo/issues/1555) and is not a bug. It turns out it's not trivial to trap calls to *exit* in Perl. For my particular problem, I was able to find a workaround by overriding *exit* (i.e., setting *CORE::GLOBAL::exit* to a subroutine reference) and using the module *Scope::Upper*.
Kind regards Edward On Tuesday, August 11, 2020 at 5:08:30 PM UTC+2 Sebastian Riedel wrote: > Please open an issue on GitHub, that looks like a bug in > Mojo::IOLoop::Subprocess. > > -- > sebastian > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/57ea8007-4c8a-4ac7-b906-cd6b18079b72n%40googlegroups.com.