Export to GitHub

pylockfile - issue #15

Naming of mkdir lockfile could be better


Posted on Aug 1, 2011 by Massive Hippo

Request:

in mkdirlockfile.py: self.unique_name = os.path.join(self.lock_file, "%s.%s%s" % (self.hostname, self.tname, self.pid))

in init.py: self.unique_name = os.path.join(dirname, "%s%s.%s" % (self.hostname, self.tname, self.pid))

maybe it is better to allign this. I also prefer to make it easier to get the pid out of the filename. In that case you could make some procedure to find abandoned mutexes. So combining the both into: %s.%s.%s could be a solution.

Status: New

Labels:
Type-Defect Priority-Medium