Skip to content

fix: Fix ckb process kill unexpected. - #2467

Merged
Keith-CY merged 3 commits into
nervosnetwork:developfrom
yanguoyu:fix-process-kill-unexpected
Aug 17, 2022
Merged

fix: Fix ckb process kill unexpected.#2467
Keith-CY merged 3 commits into
nervosnetwork:developfrom
yanguoyu:fix-process-kill-unexpected

Conversation

@yanguoyu

Copy link
Copy Markdown
Contributor
  1. Sometime ckb process does not emit close after calling ckb.kill, so wait 1 second when stop process monitor.
  2. Use kill(2) to replace kill(), kill(2) means Sends a signal to a specified process, to all members of a specified process group, or to all processes on the system.

1. Sometime ckb process not emit close after call `ckb.kill`, so wait 1 second when stop process monitor.
2. Use kill(2) replace kill(), kill(2) means Sends a signal to a specified process, to all members of a specified process group, or to all processes on the system.
@yanguoyu
yanguoyu requested review from Cedar67 and Keith-CY August 12, 2022 10:32
@yanguoyu

Copy link
Copy Markdown
Contributor Author

@Cedar67 Try this, I use 'SIGKILL' for the kill's parameter. It means kill -9.
image

@Cedar67 Cedar67 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verified.

@Keith-CY
Keith-CY merged commit 65d441e into nervosnetwork:develop Aug 17, 2022
@Keith-CY Keith-CY mentioned this pull request Sep 2, 2022
@yanguoyu
yanguoyu deleted the fix-process-kill-unexpected branch September 18, 2022 12:02
@Keith-CY Keith-CY mentioned this pull request Dec 26, 2022
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.

3 participants