| author | |
| committer | |
| log | 4de2b1ea65e6b54cedfe56268a8bf8e9446addb0 |
| tree | 7114caa4609af2e0fa942eceb34f6354102a7c34 |
| parent | c104e864429e1b62aa68423171dc6d94d3f4ee0e |
Closes: #224331 files changed, 4 insertions(+), 1 deletions(-)
lib/std/process/Child.zig+4-1| ... | ... | @@ -428,12 +428,15 @@ pub fn run(args: struct { |
| 428 | 428 | } |
| 429 | 429 | |
| 430 | 430 | try child.spawn(); |
| 431 | errdefer { | |
| 432 | _ = child.kill() catch {}; | |
| 433 | } | |
| 431 | 434 | try child.collectOutput(&stdout, &stderr, args.max_output_bytes); |
| 432 | 435 | |
| 433 | 436 | return RunResult{ |
| 434 | .term = try child.wait(), | |
| 435 | 437 | .stdout = try stdout.toOwnedSlice(), |
| 436 | 438 | .stderr = try stderr.toOwnedSlice(), |
| 439 | .term = try child.wait(), | |
| 437 | 440 | }; |
| 438 | 441 | } |
| 439 | 442 |