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

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
pull/4/head
Michail Vourlakos 6 years ago
parent 56cfb42734
commit 5c28b2194a

@ -190,7 +190,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