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 147461 Details for
Bug 227487
joe wakes up spuriously once per second even when there's nothing to do
[?]
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 fix wakeup behavior
joe.patch (text/plain), 1.00 KB, created by
Arjan van de Ven
on 2007-02-06 12:37:00 UTC
(
hide
)
Description:
patch to fix wakeup behavior
Filename:
MIME Type:
Creator:
Arjan van de Ven
Created:
2007-02-06 12:37:00 UTC
Size:
1.00 KB
patch
obsolete
>Index: joe-3.5/tty.c >=================================================================== >--- joe-3.5.orig/tty.c >+++ joe-3.5/tty.c >@@ -242,18 +242,19 @@ void ttclose(void) > } > > static int winched = 0; >+int ticked = 0; > #ifdef SIGWINCH > /* Window size interrupt handler */ > static RETSIGTYPE winchd(int unused) > { > ++winched; >+ ticked = 1; > REINSTALL_SIGHANDLER(SIGWINCH, winchd); > } > #endif > > /* Second ticker */ > >-int ticked = 0; > static RETSIGTYPE dotick(int unused) > { > ticked = 1; >@@ -277,6 +278,8 @@ void tickon(void) > { > #ifdef HAVE_SETITIMER > struct itimerval val; >+ struct timeval now; >+ gettimeofday(&now, NULL); > val.it_interval.tv_sec = 0; > val.it_interval.tv_usec = 0; > if (auto_scroll) { >@@ -287,8 +290,8 @@ void tickon(void) > val.it_value.tv_sec = 0; > val.it_value.tv_usec = tim; > } else { >- val.it_value.tv_sec = 1; >- val.it_value.tv_usec = 0; >+ val.it_value.tv_sec = 60 - (now.tv_sec % 60); >+ val.it_value.tv_usec = 1000000 - now.tv_usec; > } > ticked = 0; > joe_set_signal(SIGALRM, dotick);
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 227487
: 147461