Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(script): fixed panic when calling inherited_fds in root process #4679

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

mohanson
Copy link
Contributor

What problem does this PR solve?

Problem Summary:

When inherited_fds() is called in the root process, vm will panic.

What is changed and how it works?

What's Changed:

Returns an empty vector directly when inherited_fds() is called in the root process.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code ci-runs-only: [ quick_checks,linters ]

Release note

None: Exclude this PR from the release note.

@mohanson mohanson requested a review from a team as a code owner October 15, 2024 07:48
@mohanson mohanson requested review from quake and removed request for a team October 15, 2024 07:48
@eval-exec eval-exec added the m:vm label Oct 15, 2024
@zhangsoledad zhangsoledad added this pull request to the merge queue Oct 16, 2024
Merged via the queue into nervosnetwork:develop with commit de1473e Oct 16, 2024
33 checks passed
zhangsoledad added a commit to zhangsoledad/ckb that referenced this pull request Oct 16, 2024
fix(script): fixed panic when calling inherited_fds in root process
zhangsoledad added a commit that referenced this pull request Oct 16, 2024
Backport #4679, fix(script): fixed panic when calling inherited_fds in root process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants