On Wednesday, 17 March 2021 at 23:08:07 UTC, kdevel wrote:
> In order to watch out for lost bytes in a pipe I encountered
> this segfault.
> It seems that the readEnd is already closed when rawRead =
> fread is
> called (uncomment the eof line).
>
> [...]
Have you tried "scope(exit) wait(" instead?