1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-25 10:59:53 +03:00

Merge pull request #1245 from dnobori/201130_fix_bad_remove

Found the bad remove for lock files.
This commit is contained in:
Ilya Shipitsin 2020-11-30 04:29:44 -08:00 committed by GitHub
commit bf1201aa26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -799,7 +799,6 @@ void *UnixNewSingleInstance(char *instance_name)
if (fcntl(fd, F_SETLK, &lock) == -1)
{
close(fd);
(void)remove(name);
return NULL;
}
else