Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 41519 Details for
Bug 67060
smbpwman-0.5-r2 (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Retry connection to daemon
socket-retry.patch (text/plain), 719 bytes, created by
chris-gentoo
on 2004-10-11 02:23:06 UTC
(
hide
)
Description:
Retry connection to daemon
Filename:
MIME Type:
Creator:
chris-gentoo
Created:
2004-10-11 02:23:06 UTC
Size:
719 bytes
patch
obsolete
>diff -ru smbpwman-0.5.orig/smbpwcommon.c smbpwman-0.5/smbpwcommon.c >--- smbpwman-0.5.orig/smbpwcommon.c 2004-09-22 11:02:54.000000000 +1000 >+++ smbpwman-0.5/smbpwcommon.c 2004-09-22 11:04:44.000000000 +1000 >@@ -255,6 +255,8 @@ > ssize_t len; > char result = 0xff; > char *password = 0; >+ int attempts = 3; >+ int delay = 1; > > cs = smbpw_unix_connect(SOCKET_NAME); > >@@ -260,7 +262,24 @@ > > if(cs < 0) > { >- cs = smbpw_unix_connect(SOCKET_NAME); >+ while(attempts > 0) >+ { >+ attempts--; >+ sleep(delay); >+ delay = delay * 2; >+ >+ cs = smbpw_unix_connect(SOCKET_NAME); >+ if(cs >= 0) >+ { >+ break; >+ } >+ } >+ } >+ >+ if(cs < 0) >+ { >+ // could not connect to server >+ return password; > } > > // retrieve
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 67060
:
41513
|
41514
|
41515
|
41516
|
41517
|
41518
| 41519 |
41520
|
41521
|
41522
|
41523
|
41524