wayland: Print error code if accept fails for security context's listen fd

wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent de15b87ea7
commit 856925bcc3
  1. 2
      src/wayland/display.cpp

@ -272,7 +272,7 @@ void SecurityContext::onListenFdActivated(QSocketDescriptor socketDescriptor)
{
const int clientFd = accept4(socketDescriptor, nullptr, nullptr, SOCK_CLOEXEC);
if (clientFd < 0) {
qCWarning(KWIN_CORE) << "Failed to accept client from security listen FD";
qCWarning(KWIN_CORE) << "Failed to accept client from security listen FD:" << strerror(errno);
return;
}

Loading…
Cancel
Save