Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivated by containers#957 but probably not any kind of fix in reality. Our error handling here was buggy. What we really should do is avoid `fork()` and do an execve here, but that's a larger refactor. - Close the other side of the socket in the forked child so the parent doesn't hang indefinitely if the child dies before sending - Change the parent to return a clean error if the child doesn't write anything instead of an `assert!` - Check the exit code of the child Signed-off-by: Colin Walters <[email protected]>
- Loading branch information