Commit 902450ea authored by Lisa's avatar Lisa
Browse files

PID assignment in Filesystem helper fixed.

parent 9f66cb77
......@@ -86,10 +86,10 @@ void FilesystemHelper::getLock(qint64 pid)
qDebug() << "Get lock for" << pid;
//if (/*m_lock.empty() || kill(m_lock.head(), 0) != 0*/) {
qDebug() << "Accepted" << m_lock;
m_pid = pid;
if (m_locked && m_lock.empty()) {
emit lockGranted(pid);
m_pid = pid;
}
m_lock.append(pid);
......
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