修复进程通信临时文件目录环境变量获取

This commit is contained in:
John
2018-07-02 14:21:02 +08:00
parent fda5c397b2
commit 2c67a6ceb2

View File

@ -50,7 +50,7 @@ func getCommFilePath(pid int) string {
// 获取进程间通信目录地址
func getCommDirPath() string {
tempDir := os.Getenv("gproc.tempdir")
tempDir := os.Getenv(gPROC_TEMP_DIR_ENV_KEY)
if tempDir == "" {
tempDir = gfile.TempDir()
}