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

Zombie ps process #30

Open
goldyfruit opened this issue Jan 24, 2024 · 1 comment
Open

Zombie ps process #30

goldyfruit opened this issue Jan 24, 2024 · 1 comment

Comments

@goldyfruit
Copy link
Member

For some reason, ovos_PHAL always has a zombie process.

goldyfr+     775  3.2  0.7 393700 63980 ?        Ssl  10:14   0:06  \_ /home/goldyfruit/.venvs/ovos/bin/python3.11 /home/goldyfruit/.venvs/ovos/bin/ovos_PHAL
goldyfr+     883  0.0  0.0      0     0 ?        Z    10:14   0:00  |   \_ [ps] <defunct>
@mikejgray
Copy link

Not 100% sure the differences in the implementations, but I did a little tweak on mine for ovos-mac that seemed to help:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
from ovos_PHAL.__main__ import main
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    try:
        sys.exit(main())
    except KeyboardInterrupt:
        print("Process interrupted by user")
        sys.exit(1)

I don't think it would here necessarily, though, because systemd won't do a KeyboardInterrupt...

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

No branches or pull requests

2 participants