crystal-lang / crystal

The Crystal Programming Language
https://crystal-lang.org
Apache License 2.0
19.21k stars 1.61k forks source link

Fix `Process.run` with closed IO #14698

Closed straight-shoota closed 1 week ago

straight-shoota commented 3 weeks ago

IOs passed to Process.run experience some indirection which blew up if an IO is closed. This patch ensures that closed IOs are handled correctly.

Resolves part of https://github.com/crystal-lang/crystal/issues/14569