Skip to content

remove_pidfile is not atomic #5

@pho-enix

Description

@pho-enix

def remove_pidfile File.unlink(self.pidpath) if self.pidfile_exists? end

No such file or directory @ unlink_internal - /tmp/a.pid

Looks like this is a race, and the pidfile disappears right after the exists has been runt.

I think either the check and delete should be flocked or the delete should not fail if the file is not there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions