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

This commit is contained in:
Vlad Zahorodnii 2024-05-16 13:26:56 +03:00
parent de15b87ea7
commit 856925bcc3

View file

@ -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;
}