Bugzilla – Attachment 1203 Details for
Bug 1254
Race condition in ssh-agent AUTH_CONNECTION
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds a sleep when socket reads fail with EAGAIN
patch (text/plain), 602 bytes, created by
Omar W. Hannet
on 2006-10-25 06:25:39 AEST
(
hide
)
Description:
Adds a sleep when socket reads fail with EAGAIN
Filename:
MIME Type:
Creator:
Omar W. Hannet
Created:
2006-10-25 06:25:39 AEST
Size:
602 bytes
patch
obsolete
>--- ssh-agent.c.orig Mon Oct 23 17:05:01 2006 >+++ ssh-agent.c Tue Oct 24 13:05:47 2006 >@@ -940,9 +940,14 @@ > if (FD_ISSET(sockets[i].fd, readset)) { > do { > len = read(sockets[i].fd, buf, sizeof(buf)); >- if (len == -1 && (errno == EAGAIN || >- errno == EINTR)) >- continue; >+ if (len == -1) { >+ if (errno == EINTR) >+ continue; >+ if (errno == EAGAIN) { >+ usleep(10); >+ continue; >+ } >+ } > break; > } while (1); > if (len <= 0) {
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 1254
: 1203