Commit c473fa00 authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Do not use deprecated pid() method

parent 27f5b5dc
......@@ -56,7 +56,7 @@ void Kr7zEncryptionChecker::receivedOutput()
if ((line.contains("password") && line.contains("enter")) ||
line == QStringLiteral("encrypted = +")) {
encrypted = true;
::kill(- pid(), SIGKILL); // kill the whole process group by giving the negative PID
::kill(- processId(), SIGKILL); // kill the whole process group by giving the negative PID
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment