1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-25 02:49:52 +03:00

Found the bad remove for lock files.

This commit is contained in:
Daiyuu Nobori 2020-11-30 18:15:37 +09:00
parent eddf593e22
commit a207260e38

View File

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