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