From: root Date: Wed, 15 Oct 2008 17:16:47 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=d50f390e6b1257db72b74d52651c07e2d7c2d680;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/Changes b/Changes index cf81c5ce..ffa5fddc 100644 --- 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. diff --git a/src/command.C b/src/command.C index 737271d4..ce5084d9 100644 --- a/src/command.C +++ b/src/command.C @@ -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 ();