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

Any errors produced while the daemon is starting are silenced #130

Open
warownia1 opened this issue Nov 10, 2023 · 0 comments
Open

Any errors produced while the daemon is starting are silenced #130

warownia1 opened this issue Nov 10, 2023 · 0 comments

Comments

@warownia1
Copy link
Collaborator

Starting the daemon causes the parent process to exit immediately leaving the child process detached from the terminal with all file descriptors (including 0, 1 and 2) closed. It makes the daemon unable to display any uncaught errors.

Consider using python-daemon library which takes care of spawning daemons and pid files according to the PEP 3243.
Leave stderr open in debug mode.
Create a pipe to the parent process to send errors and notify of successful start or failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant