mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Implement write_to_stdin() in std::os::process (#2482)
* SubProcess: Add write_to_stdin * SubProcess: Change unit test for windows support
This commit is contained in:
@@ -531,3 +531,9 @@ fn bool? SubProcess.is_running(&self)
|
||||
return false;
|
||||
$endif
|
||||
}
|
||||
|
||||
fn usz? SubProcess.write_to_stdin(&self, char[] buffer)
|
||||
{
|
||||
if (!self.stdin_file) return FAILED_TO_OPEN_STDIN?;
|
||||
return os::native_fwrite(self.stdin_file, buffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user