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 149440 Details for
Bug 204906
gam_server causes an incredibly high number of context switches/sec
[?]
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]
Nicer version
gamin-conditional-poll.patch (text/plain), 1.76 KB, created by
Alexander Larsson
on 2007-03-07 10:54:51 UTC
(
hide
)
Description:
Nicer version
Filename:
MIME Type:
Creator:
Alexander Larsson
Created:
2007-03-07 10:54:51 UTC
Size:
1.76 KB
patch
obsolete
>Index: server/gam_poll_basic.c >=================================================================== >--- server/gam_poll_basic.c (revision 320) >+++ server/gam_poll_basic.c (working copy) >@@ -46,6 +46,8 @@ static gboolean gam_poll_basic_remove_al > static GaminEventType gam_poll_basic_poll_file(GamNode * node); > static gboolean gam_poll_basic_scan_callback(gpointer data); > >+static gboolean scan_callback_running = FALSE; >+ > gboolean > gam_poll_basic_init () > { >@@ -56,7 +58,6 @@ gam_poll_basic_init () > gam_poll_basic_remove_all_for, > gam_poll_basic_poll_file); > >- g_timeout_add(1000, gam_poll_basic_scan_callback, NULL); > GAM_DEBUG(DEBUG_INFO, "basic poll backend initialized\n"); > return TRUE; > } >@@ -116,6 +117,12 @@ gam_poll_basic_add_subscription(GamSubsc > > gam_poll_generic_add (node); > >+ if (!scan_callback_running) >+ { >+ scan_callback_running = TRUE; >+ g_timeout_add (1000, gam_poll_basic_scan_callback, NULL); >+ } >+ > GAM_DEBUG(DEBUG_INFO, "Poll: added subscription for %s\n", path); > return TRUE; > } >@@ -356,6 +363,7 @@ static gboolean > gam_poll_basic_scan_callback(gpointer data) > { > int idx; >+ gboolean did_something = FALSE; > > gam_poll_generic_update_time (); > >@@ -371,6 +379,8 @@ gam_poll_basic_scan_callback(gpointer da > > g_assert (node); > >+ did_something = TRUE; >+ > if (node->is_dir) { > gam_poll_generic_scan_directory_internal(node); > } else { >@@ -391,6 +401,8 @@ gam_poll_basic_scan_callback(gpointer da > > g_assert (node); > >+ did_something = TRUE; >+ > #ifdef VERBOSE_POLL > GAM_DEBUG(DEBUG_INFO, "Checking missing file %s\n", node->path); > #endif >@@ -412,5 +424,10 @@ gam_poll_basic_scan_callback(gpointer da > } > } > >+ if (!did_something) { >+ scan_callback_running = FALSE; >+ return FALSE; >+ } >+ > return TRUE; > }
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 204906
:
135450
|
135463
|
135464
|
135533
|
147470
| 149440