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 159441 Details for
Bug 247711
automount never ends, high cpu rate
[?]
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]
Patch to try not to mix usage of hi and lo res time sources
autofs-5.0.1-hi-res-time.patch (text/plain), 1.54 KB, created by
Ian Kent
on 2007-07-17 14:36:17 UTC
(
hide
)
Description:
Patch to try not to mix usage of hi and lo res time sources
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2007-07-17 14:36:17 UTC
Size:
1.54 KB
patch
obsolete
>--- autofs-5.0.1/daemon/state.c.hi-res-time 2007-07-17 22:29:23.000000000 +0800 >+++ autofs-5.0.1/daemon/state.c 2007-07-17 22:29:59.000000000 +0800 >@@ -894,6 +894,7 @@ static void *st_queue_handler(void *arg) > struct list_head *head; > struct list_head *p; > struct timespec wait; >+ struct timeval now; > int status, ret; > > st_mutex_lock(); >@@ -904,8 +905,9 @@ static void *st_queue_handler(void *arg) > * entry is added. > */ > head = &state_queue; >- wait.tv_sec = time(NULL) + 1; >- wait.tv_nsec = 0; >+ gettimeofday(&now, NULL); >+ wait.tv_sec = now.tv_sec + 1; >+ wait.tv_nsec = now.tv_usec * 1000; > > while (list_empty(head)) { > status = pthread_cond_timedwait(&cond, &mutex, &wait); >@@ -939,8 +941,9 @@ static void *st_queue_handler(void *arg) > } > > while (1) { >- wait.tv_sec = time(NULL) + 1; >- wait.tv_nsec = 0; >+ gettimeofday(&now, NULL); >+ wait.tv_sec = now.tv_sec + 1; >+ wait.tv_nsec = now.tv_usec * 1000; > > signaled = 0; > while (!signaled) { >--- autofs-5.0.1/lib/alarm.c.hi-res-time 2007-07-17 22:29:23.000000000 +0800 >+++ autofs-5.0.1/lib/alarm.c 2007-07-17 22:32:06.000000000 +0800 >@@ -178,6 +178,7 @@ static void *alarm_handler(void *arg) > > while (1) { > struct alarm *current; >+ struct timeval usecs; > > /* > * If the alarm list is empty, wait until an alarm is >@@ -215,8 +216,9 @@ static void *alarm_handler(void *arg) > continue; > } > >+ gettimeofday(&usecs, NULL); > expire.tv_sec = current->time; >- expire.tv_nsec = 0; >+ expire.tv_nsec = usecs.tv_usec * 1000; > > while (1) { > struct autofs_point *ap;
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 247711
:
159320
| 159441 |
159454