*** empty log message ***
authorroot <root>
Wed, 15 Oct 2008 17:16:47 +0000 (17:16 +0000)
committerroot <root>
Wed, 15 Oct 2008 17:16:47 +0000 (17:16 +0000)
Changes
src/command.C

diff --git a/Changes b/Changes
index cf81c5cec86017a8b34fa40beaad2a3d3c01023b..ffa5fddcfa269a9a529646ab238572eaa94fa864 100644 (file)
--- a/Changes
+++ b/Changes
@@ -31,6 +31,8 @@ TODO: cursor over overlays, when focus change?
        - ignore byte-order marks and do not treat them like combining characters.
         - fix build issue when CURSOR_BLINK is not defined (Emanuele Giaquinta).
         - do some ยต-optimisations to the character fast path.
+        - try to work around linux first breaking sched_yield and now breaking
+          the only known workaround.
 
 9.05 Sun Jun 15 20:09:20 CEST 2008
        - new option --cd/chdir to set the starting working directory.
index 737271d4190730a95b5312dca7594c0153a88497..ce5084d9594f750698db262a406b301efbf6f319 100644 (file)
@@ -1129,8 +1129,11 @@ static struct event_handler
     // that giving a process calling sched_yield () less cpu time than
     // ones with high nice levels is a useful thing to do. It surely is is
     // allowed by the sus... as is returning ENOSYS.
+    // since the linux guys additionally thought that breaking the only
+    // known workaroudn against their unusable sched_yield hack is cool,
+    // we just nanosleep a bit and hope for the best.
 
-    struct timespec ts = { 0, 0 };
+    struct timespec ts = { 0, 1000 };
     nanosleep (&ts, 0);
 
     w.stop ();