Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

feat: Add global panic hook #376

Merged
merged 3 commits into from
Jul 27, 2020
Merged

Conversation

yejiayu
Copy link
Contributor

@yejiayu yejiayu commented Jul 27, 2020

What type of PR is this?
feat

What this PR does / why we need it:
Set a panic hook with global panic, if any of the child threads crashes, the process exit.

why?

Muta is a multi-threaded environment. If an unpredictable crash occurs in child threads that might cause critical logic to fail to execute correctly, we should crash the process immediately so that we can find the cause quickly.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@muta-robot muta-robot added the lgtm #8ef42e label Jul 27, 2020
@muta-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: KaoImin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@yejiayu
Copy link
Contributor Author

yejiayu commented Jul 27, 2020

/retest

@muta-robot muta-robot merged commit 7382279 into nervosnetwork:master Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants