Skip to content

Conversation

@norio-nomura
Copy link
Contributor

Sometimes, after the limactl hostagent process stops (e.g., due to a SIGKILL), the ha.pid file remains.
This change checks if the process with the given PID is still running.
If not, the ha.pid file is ignored, simplifying debugging by reducing cleanup steps to remove ha.pid.

see: #4044 (comment)

…ha.pid`

Sometimes, after the `limactl hostagent` process stops (e.g., due to a SIGKILL), the `ha.pid` file remains.
This change checks if the process with the given PID is still running.
If not, the `ha.pid` file is ignored, simplifying debugging by reducing cleanup steps to remove `ha.pid`.

see: lima-vm#4044 (comment)
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
@AkihiroSuda AkihiroSuda added this to the v2.0.0 milestone Sep 17, 2025
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit 85e0c77 into lima-vm:master Sep 17, 2025
36 checks passed
@norio-nomura norio-nomura deleted the detect-hostagent-process-on-checking-pid branch September 17, 2025 07:48
@norio-nomura
Copy link
Contributor Author

Thanks! 🙏🏻

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