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

bugfix: double delete of pidfile #470

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

PorcelainMouse
Copy link

Removed redundant os.remove(options.pidfile) at daemon_entry.py:136. cmp to daemon.py:165.

Removed redundant os.remove(options.pidfile).
Copy link
Member

@cas-- cas-- left a comment

Choose a reason for hiding this comment

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

I'm afraid this is not the right solution. Can you please provide more details on the bug you are encountering?

This is a user command line supplied arg pidfile perhaps the path supplied matches the daemon's internal pidfile? get_config_dir('deluged.pid'). It is possible the file was deleted before daemon exited?

I suspect the more correct solution here is a try block around the remove statement to catch file not found errors.

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