1
0
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:
Delyan Angelov 2022-07-06 08:32:09 +03:00
parent a46bcf3571
commit 3308313167
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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
}