Fix gpsegwalrep.py deadlock issue
When running `gpsegwalrep.py start`, it would intermittently deadlock on the subprocess.check_output call. Apparently, concurrent subprocess.check_output calls can deadlock depending on what shell commands are run and how fast they execute. For now, fix the issue by only calling subprocess.check_output under a thread lock. Someone can revisit this later although it is assumed a proper tool will be created in the near future.
Showing
想要评论请 注册 或 登录