mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-24 04:55:54 +00:00
Fix bug with syncing config within a multi-threaded java process
This commit is contained in:
parent
c7203ee639
commit
ebb7500119
3
server.c
3
server.c
@ -70,6 +70,9 @@ void cli_cleanup(){
|
||||
*/
|
||||
int server_pid()
|
||||
{
|
||||
// Note that if we close another handle on the same file, our lock will disappear.
|
||||
if (server_getpid == getpid())
|
||||
return server_getpid;
|
||||
char dirname[1024];
|
||||
if (!FORMF_SERVAL_RUN_PATH(dirname, NULL))
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user