Skip to content

Commit

Permalink
make sure we reset _already_removed when create() is called successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
trbs committed Feb 14, 2019
1 parent ad82448 commit 27db26e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def create(self):
self.fh.write("%d\n" % self.pid)
self.fh.flush()
self.fh.seek(0)
self._already_removed = False

if self.register_atexit and not self._is_setup:
atexit.register(self.close)
Expand Down

0 comments on commit 27db26e

Please sign in to comment.