trbs / pid

Pidfile featuring stale detection and file-locking, can also be used as context-manager or decorator
https://pypi.python.org/pypi/pid/
Apache License 2.0
102 stars 26 forks source link

Same pid support #10

Closed kaithar closed 8 years ago

kaithar commented 9 years ago

It would be really nice if this checked the pid file content against it's own pid, so that multiple calls within the same process wouldn't fail so badly. My use case is tornado's exec-on-file-change mechanism.

trbs commented 9 years ago

Could please try it this works correctly for you ?