1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-26 19:39:53 +03:00

put PID files under PidDir

This commit is contained in:
Koichiro IWAO 2019-11-29 22:58:57 +09:00
parent 18c9b74ff0
commit 01abdedc45
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB

View File

@ -771,7 +771,7 @@ void *UnixNewSingleInstance(char *instance_name)
StrCpy(tmp, sizeof(tmp), instance_name); StrCpy(tmp, sizeof(tmp), instance_name);
} }
GetExeDir(dir, sizeof(dir)); GetPidDir(dir, sizeof(dir));
// File name generation // File name generation
Format(name, sizeof(name), "%s/.%s", dir, tmp); Format(name, sizeof(name), "%s/.%s", dir, tmp);
@ -2185,7 +2185,7 @@ void UnixGenPidFileName(char *name, UINT size)
return; return;
} }
GetExeDir(dir, sizeof(dir)); GetPidDir(dir, sizeof(dir));
GetExeName(exe_name, sizeof(exe_name)); GetExeName(exe_name, sizeof(exe_name));
StrCat(exe_name, sizeof(exe_name), ":pid_hash"); StrCat(exe_name, sizeof(exe_name), ":pid_hash");
@ -2230,7 +2230,7 @@ void UnixGenCtlFileName(char *name, UINT size)
return; return;
} }
GetExeDir(dir, sizeof(dir)); GetPidDir(dir, sizeof(dir));
GetExeName(exe_name, sizeof(exe_name)); GetExeName(exe_name, sizeof(exe_name));
StrCat(exe_name, sizeof(exe_name), ":pid_hash"); StrCat(exe_name, sizeof(exe_name), ":pid_hash");