Skip to content

Conversation

@adityaramani
Copy link
Contributor

Implements a way for the CLI to wait until the IO streams from the SandboxService have been drained before closing them.

Follows the same pattern as apple/containerization#110

This change also performs some cleanup in the SandboxService.startProcess method - splitting the code paths to handle the init process and an exec'd process into two different private methods to make easier reading

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense to throw here since self is a struct and we cannot update self.ioTracker to be nil (without going throw a few hoops) - At least this way the client will know that something is off and they wont repeatedly call this wait method

@adityaramani adityaramani requested a review from dcantah June 13, 2025 23:15
@adityaramani adityaramani force-pushed the io-wait branch 3 times, most recently from ec7013f to 9f79e26 Compare June 14, 2025 17:19
Signed-off-by: Aditya Ramani <[email protected]>
@adityaramani adityaramani merged commit 4c171d4 into apple:main Jun 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants