# std.ChildProcess: improvements to collectOutputPosix · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/717cf00fe0d68dc1213fb645b184afe1cbf52104)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 717cf00fe0d68dc1213fb645b184afe1cbf52104

Requested commit: 717cf00fe0d68dc1213fb645b184afe1cbf52104

Commit: 717cf00fe0d68dc1213fb645b184afe1cbf52104

Tree: bcfdeec3c406aeb2a0427d816d0f3d242354fdce

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.ChildProcess: improvements to collectOutputPosix

 * read directly into the ArrayList buffers.
 * respect max_output_bytes

 * std.ArrayList:
   - make `allocatedSlice` public.
   - add `unusedCapacitySlice`.

I removed the Windows implementation of this stuff; I am doing a partial
merge of LemonBoy's patch with the understanding that a later patch can
add the Windows implementation after it is vetted.

```

## Parents

- [892b37cdae89fe23d2a19b0b512fc1f7a73dd6ce](https://git.cafe/gitcafe/zig/commit/892b37cdae89fe23d2a19b0b512fc1f7a73dd6ce?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/717cf00fe0d68dc1213fb645b184afe1cbf52104?format=markdown)
