mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
When checking for another copy, check if the existing pid is actually not
ours.
This commit is contained in:
parent
71c4709bad
commit
0e187e1e76
|
@ -70,7 +70,7 @@ int main( int argc, char ** argv )
|
|||
pid_file.close();
|
||||
|
||||
bool isExist = ProcessWrapper::processExists(tmp);
|
||||
if ( isExist )
|
||||
if ( isExist && tmp != current_pid )
|
||||
{
|
||||
puts( "Another GoldenDict copy started already." );
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue