alibaba / alibaba/tidevice

terminate "tidevice perf" using SIGTERM instead of SIGINT

Open
#335 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.6k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

When I send a SIGINT signal using the process ID after executing the 'tidevice perf' command, it doesn't work for some reason. Does the clean-up operation after executing the 'tidevice perf' command work correctly if I terminate it using the SIGTERM signal instead of SIGINT?

When tidevice receive SIGTERM, i want to terminate tidevice process gracefully.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the termination behavior through the `tidevice perf` entry point, comparing SIGINT and SIGTERM. Trace the existing cleanup path and verify that sending SIGTERM ends the process gracefully and performs the same cleanup as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.