Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 317477 Details for
Bug 463428
Stuck on Phone contact sync (+with patch)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
gammu.patch
gammu.patch (text/plain), 1.28 KB, created by
Alexey Kuznetsov
on 2008-09-23 12:48:55 UTC
(
hide
)
Description:
gammu.patch
Filename:
MIME Type:
Creator:
Alexey Kuznetsov
Created:
2008-09-23 12:48:55 UTC
Size:
1.28 KB
patch
obsolete
>Index: common/device/devfunc.c >=================================================================== >--- common/device/devfunc.c (revision 2436) >+++ common/device/devfunc.c (revision 2437) >@@ -114,34 +114,32 @@ > > #if defined (GSM_ENABLE_BLUETOOTHDEVICE) || defined (GSM_ENABLE_IRDADEVICE) > >+/* Windows do not have this, but we don't seem to need it there */ >+#ifndef MSG_DONTWAIT >+#define MSG_DONTWAIT 0 >+#endif >+ > int socket_read(GSM_StateMachine *s UNUSED, void *buf, size_t nbytes, socket_type hPhone) > { > fd_set readfds; > int result = 0; >-#ifdef WIN32 > struct timeval timer; >-#else >- int flags; >-#endif > > FD_ZERO(&readfds); > FD_SET(hPhone, &readfds); >+ >+ timer.tv_sec = 0; >+ timer.tv_usec = 0; >+ >+ if (select(hPhone + 1, &readfds, NULL, NULL, &timer) > 0) { >+ result = recv(hPhone, buf, nbytes, MSG_DONTWAIT); > #ifndef WIN32 >- if (select(hPhone+1, &readfds, NULL, NULL, 0) > 0) { >- flags = fcntl(hPhone, F_GETFL); >- fcntl(hPhone, F_SETFL, flags | O_NONBLOCK); >- result = read(hPhone, buf, nbytes); > if (result < 0 && errno != EINTR) { >- return 0; >- } >- fcntl(hPhone, F_SETFL, flags); >- } >-#else >- memset(&timer,0,sizeof(timer)); >- if (select(0, &readfds, NULL, NULL, &timer) > 0) { >- result = recv(hPhone, buf, nbytes, 0); >- } >+ return 0; >+ } > #endif >+ } >+ > return result; > } >
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 Raw
Actions:
View
Attachments on
bug 463428
: 317477