Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 179930 Details for
Bug 256603
x11-base/xorg-server-1.3.0.0-r6 closes client connections by mistake
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix (stripped from upstream)
xorg-server-1.3.0.0-fix-CheckConnections.patch (text/plain), 1.50 KB, created by
Markus
on 2009-01-28 09:53:16 UTC
(
hide
)
Description:
fix (stripped from upstream)
Filename:
MIME Type:
Creator:
Markus
Created:
2009-01-28 09:53:16 UTC
Size:
1.50 KB
patch
obsolete
>diff -Nur xorg-server-1.3.0.0.orig/os/connection.c xorg-server-1.3.0.0.fixed/os/connection.c >--- xorg-server-1.3.0.0.orig/os/connection.c 2009-01-26 19:19:44.000000000 +0100 >+++ xorg-server-1.3.0.0.fixed/os/connection.c 2009-01-27 15:31:48.000000000 +0100 >@@ -1005,9 +1005,12 @@ > curclient = curoff + (i * (sizeof(fd_mask)*8)); > FD_ZERO(&tmask); > FD_SET(curclient, &tmask); >- r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime); >+ do { >+ r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime); >+ } while (r < 0 && (errno == EINTR || errno == EAGAIN)); > if (r < 0) >- CloseDownClient(clients[ConnectionTranslation[curclient]]); >+ if (ConnectionTranslation[curclient] > 0) >+ CloseDownClient(clients[ConnectionTranslation[curclient]]); > mask &= ~((fd_mask)1 << curoff); > } > } >@@ -1018,10 +1021,13 @@ > curclient = XFD_FD(&savedAllClients, i); > FD_ZERO(&tmask); > FD_SET(curclient, &tmask); >- r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime); >- if (r < 0 && GetConnectionTranslation(curclient) > 0) >- CloseDownClient(clients[GetConnectionTranslation(curclient)]); >- } >+ do { >+ r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime); >+ } while (r < 0 && (errno == EINTR || errno == EAGAIN)); >+ if (r < 0) >+ if (GetConnectionTranslation(curclient) > 0) >+ CloseDownClient(clients[GetConnectionTranslation(curclient)]); >+ } > #endif > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256603
: 179930