| Summary: | XWayland:connection fails with "maximum number of clients reached" | ||
|---|---|---|---|
| Product: | xorg | Reporter: | Olivier Fourdan <fourdan> |
| Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> |
| Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | git | ||
| Hardware: | Other | ||
| OS: | All | ||
| See Also: | https://bugzilla.redhat.com/show_bug.cgi?id=1231475 | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
|
Description
Olivier Fourdan
2015-06-23 11:58:00 UTC
Follow-up patch send to the ML for further review/discussion: http://lists.x.org/archives/xorg-devel/2015-June/046695.html Try
diff --git a/hw/xwayland/xwayland-shm.c b/hw/xwayland/xwayland-shm.c
index 2d0ce3e..1022c0d 100644
--- a/hw/xwayland/xwayland-shm.c
+++ b/hw/xwayland/xwayland-shm.c
@@ -82,7 +82,7 @@ create_tmpfile_cloexec(char *tmpname)
}
#endif
- return fd;
+ return os_move_fd(fd);
}
/*
as a shor term fix.
(In reply to Chris Wilson from comment #2) > Try > [...] > - return fd; > + return os_move_fd(fd); Or right, that's much better, thanks! > as a shor term fix. Why just a short term fix? it looks perfectly spot on to me... BTW, do you mind if I resend a patch as a follow-up to the ML with your solution with you as author and your signed-off-by? (In reply to Olivier Fourdan from comment #3) > (In reply to Chris Wilson from comment #2) > > Try > > [...] > > - return fd; > > + return os_move_fd(fd); > > Or right, that's much better, thanks! > > > as a shor term fix. > > Why just a short term fix? it looks perfectly spot on to me... I thought you had scenarios requiring more than 256 clients. Certainly seems conceivable that we will run out. If that works for you send it on with Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> and your Reported-and-tested-by. (In reply to Chris Wilson from comment #5) > If that works for you send it on with > > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> > > and your Reported-and-tested-by. Done here: http://lists.x.org/archives/xorg-devel/2015-June/046722.html Thanks! Fix has been merged in git by Keith, closing. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.