Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

timecraft: fix gRPC teardown on Kill #210

Merged
merged 2 commits into from
Aug 10, 2023
Merged

timecraft: fix gRPC teardown on Kill #210

merged 2 commits into from
Aug 10, 2023

Conversation

chriso
Copy link
Contributor

@chriso chriso commented Aug 10, 2023

This PR fixes the Kill RPC from #174.

At the moment, killing a process causes Timecraft to crash. The reason is that the sandbox is torn down before the gRPC server, leading to an unexpected bad file descriptor error. This PR fixes the issue by suppressing the server error if the process context has been canceled (which is the case when killing the process through the runtime API).

@chriso chriso merged commit b2a6e67 into main Aug 10, 2023
5 checks passed
@chriso chriso deleted the fix-kill branch August 10, 2023 03:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants