parent
b5c0d0b8aa
commit
d9f7448d82
1 changed files with 3 additions and 2 deletions
|
|
@ -199,8 +199,9 @@ bool CXWaylandServer::tryOpenSockets() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string pidStr = std::to_string(getpid());
|
const std::string pidStr = std::format("{:010d}\n", getpid());
|
||||||
if (write(fd.get(), pidStr.c_str(), pidStr.length()) != (long)pidStr.length()) {
|
ASSERT(pidStr.length() == 11);
|
||||||
|
if (write(fd.get(), pidStr.c_str(), 11) != 11L) {
|
||||||
safeRemove(lockPath);
|
safeRemove(lockPath);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue