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 215931 Details for
Bug 235307
hcid keeps trying despite hopeless situation
[?]
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.
[patch]
bluez-utils-better-inotify-error.patch
bluez-utils-better-inotify-error.patch (text/plain), 1.14 KB, created by
Bastien Nocera
on 2007-10-04 15:26:15 UTC
(
hide
)
Description:
bluez-utils-better-inotify-error.patch
Filename:
MIME Type:
Creator:
Bastien Nocera
Created:
2007-10-04 15:26:15 UTC
Size:
1.14 KB
patch
obsolete
>? .deps >? .libs >? Makefile >? Makefile.in >? bluez-utils-better-inotify-error.patch >? test_textfile >Index: notify-inotify.c >=================================================================== >RCS file: /cvsroot/bluez/utils/common/notify-inotify.c,v >retrieving revision 1.8 >diff -u -p -r1.8 notify-inotify.c >--- notify-inotify.c 16 Feb 2007 20:18:37 -0000 1.8 >+++ notify-inotify.c 4 Oct 2007 15:23:55 -0000 >@@ -60,14 +60,21 @@ static gboolean io_event(GIOChannel *cha > memset(buf, 0, sizeof(buf)); > > err = g_io_channel_read(chan, (gchar *) buf, sizeof(buf) - 1, &len); >- if (err == G_IO_ERROR_AGAIN) >+ if (err == G_IO_STATUS_AGAIN) { > return TRUE; >+ } else if (err != G_IO_STATUS_NORMAL) { >+ error("Error reading from channel: No error given"); >+ return FALSE; >+ } > > while (len >= sizeof(struct inotify_event)) { > struct inotify_event *evt = (struct inotify_event *) ptr; > >- if (evt->wd != wd || !callback) >+ if (evt->wd != wd || !callback) { >+ len -= sizeof(struct inotify_event) + evt->len; >+ ptr += sizeof(struct inotify_event) + evt->len; > continue; >+ } > > if (evt->mask & (IN_CREATE | IN_MOVED_TO)) > callback(NOTIFY_CREATE, evt->name, NULL);
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 235307
: 215931