summaryrefslogtreecommitdiff
path: root/src/xwayland/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xwayland/Server.cpp')
-rw-r--r--src/xwayland/Server.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xwayland/Server.cpp b/src/xwayland/Server.cpp
index 9d40e1c9..b33dbfb5 100644
--- a/src/xwayland/Server.cpp
+++ b/src/xwayland/Server.cpp
@@ -222,7 +222,10 @@ bool CXWaylandServer::tryOpenSockets() {
continue;
char pidstr[12] = {0};
- read(fd.get(), pidstr, sizeof(pidstr) - 1);
+ if (read(fd.get(), pidstr, sizeof(pidstr) - 1) < 0) {
+ Log::logger->log(Log::ERR, "Failed to read on fd {}: {}", fd.get(), strerror(errno));
+ continue;
+ }
int32_t pid = 0;
try {