Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: It seems that I find a zle -F full CPU bug



On 16/07/14 17:01, Bart Schaefer wrote:
On Jul 16,  2:55pm, Nick Cross wrote:
} Subject: Re: It seems that I find a zle -F full CPU bug
}
} Using Fedora 5.0.5 and similar background code from Bart
} (http://www.zsh.org/mla/users/2014/msg00448.html) I can see the same
} POLLNVAL high CPU from strace.
}
} Is there any suitable workaround for 5.0.5 ?

Unfortunately I don't think there's any shell-language-level workaround.

You could try fiddling with the order in which the zle -F handlers are
removed and skip closing the descriptor in update_super_status, but it
will become complicated to keep track of the un-closed descriptors in
order to avoid leaking (i.e., never closing) them.



Darn ;-) Ok, is there a fix/alternative solution planned for the next version? (and do you happen what the schedule for that is? ).

The implementations you kindly provided for background update for prompt data is *extremely* handy when working with a lot of very large repositories.

Thanks very much

Nick



Messages sorted by: Reverse Date, Date, Thread, Author