Skip to content

Conversation

vnarapar
Copy link
Contributor

This commit addresses the timing issue to run adsprpcd binary

  • Here call trace now will accurately show the output
  • Cleanup is done smoothly

@vnarapar vnarapar requested a review from smuppand October 13, 2025 13:40
This commit addresses the timing issue to run adsprpcd binary
- Here call trace now will accurately show the output
- Cleanup is done smoothly

Signed-off-by: Vamsee Narapareddi <[email protected]>
return 1
}

kill_process() {
Copy link
Contributor

Choose a reason for hiding this comment

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

  • This is very very basic, Better you extend it to cover
    • Returns 0 if all targets are gone (or nothing was running).
    • Returns 1 if any target could not be terminated.
    • Sends SIGTERM first, waits KILL_TERM_GRACE seconds, then SIGKILL, waits KILL_KILL_GRACE seconds.
    • Kills children too (via /proc/.../children), and attempts a process-group kill when possible.
    • Safe-guards: never touches PID 1 or self ($$), gracefully handles zombies and non-children (no blocking wait calls).

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.

2 participants