When checking for another copy, check if the existing pid is actually not

ours.
This commit is contained in:
Konstantin Isakov 2010-01-02 15:56:33 +03:00
parent 71c4709bad
commit 0e187e1e76

View file

@ -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;