锁定端口的包
portlock的Python项目详细描述
舷窗锁
一个简单的库,可用于确保一次只运行脚本的一个副本
适用于*NIX系统,不确定Windows。在
from portlock import ensure_singleton
def main():
ensure_singleton(6000)
# If you reach here, you can ensure that no other proccess
# is running on port 6000
...
- 项目
标签: