Update Install.cpp

This commit is contained in:
filimonov 2021-04-24 03:15:48 +02:00 committed by GitHub
parent 3f07b09274
commit d8b57c7d66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -856,8 +856,10 @@ namespace
{
fmt::print("The process with pid = {} is running.\n", pid);
}
else
else if (errno == ESRCH)
{
// the process does not exists anymore,
// and returning pid of dead process has no sense.
pid = 0;
}
}