Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

Gracefully shutdown when main process panic.

Before

image

Now

image

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 18, 2025 05:44
Copilot finished reviewing on behalf of Timeless0911 November 18, 2025 05:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds graceful shutdown handling for the DTS generation child process when the parent process panics or terminates unexpectedly. By listening to the disconnect event, the child process can exit cleanly instead of hanging or producing excessive error output.

Key Changes

  • Added a disconnect event handler to exit the child process when IPC channel is disconnected
  • Improves error output clarity when the parent process crashes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan enabled auto-merge (squash) November 18, 2025 05:50
@chenjiahan chenjiahan merged commit f731274 into main Nov 18, 2025
16 checks passed
@chenjiahan chenjiahan deleted the disconnect branch November 18, 2025 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants