Wait forever until the lock file can be locked

Summary:
- `timeout = 3000` is a bit short on some computer. Use `timeout = -1` will work for any case.

BUG: 401041

FIXED-IN: v0.8.5

Test Plan: BUG: 401041 is fixed on my computer.

Reviewers: mvourlakos, #latte_dock

Reviewed By: mvourlakos

Tags: #latte_dock, #plasma

Differential Revision: https://phabricator.kde.org/D18258
v0.8
Michail Vourlakos 6 years ago
parent 630160c6af
commit 88e2e9ddd6

@ -188,7 +188,7 @@ int main(int argc, char **argv)
if (lockFile.getLockInfo(&pid, nullptr, nullptr)) { if (lockFile.getLockInfo(&pid, nullptr, nullptr)) {
kill(static_cast<pid_t>(pid), SIGINT); kill(static_cast<pid_t>(pid), SIGINT);
timeout = 3000; timeout = -1;
} }
} }

Loading…
Cancel
Save