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

Do not start signal thread is there is no need. #5240

Merged
merged 1 commit into from Feb 28, 2023

Conversation

zhuangel
Copy link
Contributor

@zhuangel zhuangel commented Feb 27, 2023

Now cloud hypervisor will start two signal thread to catch host side signals, then do something when specified signal is come, such as:

catch SIGWINCH, to resize virito-console.

This patch skip start such thread, is there is no need.

@zhuangel zhuangel requested a review from a team as a code owner February 27, 2023 12:29
@zhuangel zhuangel force-pushed the zhuangel/dev branch 2 times, most recently from 21fec86 to cfc2f99 Compare February 27, 2023 13:47
Copy link
Member

@rbradford rbradford left a comment

Choose a reason for hiding this comment

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

SIGTERM handling is useful even when not running on a tty; allows nice clean-up.

Now cloud hypervisor will start signal thread to catch
SIGWINCH signal, cloud hypervisor then will resize the
guest console via vconsole.

This patch skip starting signal thread when there is no
need to resize guest console, such as console is not
configured.

Signed-off-by: Yong He <alexyonghe@tencent.com>
@zhuangel
Copy link
Contributor Author

SIGTERM handling is useful even when not running on a tty; allows nice clean-up.

Thanks, I missed 'nice clean-up', I have updated the PR, only include the SIGWINCH signal related thread revise.

Copy link
Member

@rbradford rbradford left a comment

Choose a reason for hiding this comment

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

Yes, I think this is fine as there is no way to e.g. hotplug a virtio-console.

@likebreath likebreath merged commit 76d6d28 into cloud-hypervisor:main Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants