mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
a28ada5e5e
on windows, pipe handles created by _pipe are marked non-inheritable for security by mrb_hal_io_pipe. when spawning child processes via io.popen (used by backtick operator), the child needs to inherit stdin/stdout/stderr handles to communicate with the parent process. before calling createprocess, explicitly set handle_flag_inherit on the stdio handles so child processes can use them. this fixes the backtick operator returning empty strings on windows (msvc and mingw, both 32-bit and 64-bit). Co-authored-by: Claude <noreply@anthropic.com>