mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: remove the closing of stream handles at the end of Process.win_slurp/1
This commit is contained in:
parent
a46bcf3571
commit
3308313167
@ -235,12 +235,12 @@ fn (mut p Process) win_slurp(idx int) string {
|
||||
}
|
||||
soutput := read_data.str()
|
||||
unsafe { read_data.free() }
|
||||
if idx == 1 {
|
||||
close_valid_handle(&wdata.child_stdout_read)
|
||||
}
|
||||
if idx == 2 {
|
||||
close_valid_handle(&wdata.child_stderr_read)
|
||||
}
|
||||
// if idx == 1 {
|
||||
// close_valid_handle(&wdata.child_stdout_read)
|
||||
// }
|
||||
// if idx == 2 {
|
||||
// close_valid_handle(&wdata.child_stderr_read)
|
||||
// }
|
||||
return soutput
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user