Bug 2688

Summary: zsh sometimes stops displaying the command-line
Product: [Retired] Red Hat Linux Reporter: espel
Component: zshAssignee: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-09 20:10:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description espel 1999-05-09 19:52:18 UTC
zsh gets mighty confused when you type quickly, and the
select() system call happens to trash the timeout value
(as the manpage says, "consider timeout to be undefined
after select returns").

this happens rarely, but I've seen it happen on a redhat
box (5.1, with a recompiled 2.0.35 kernel).

fix: add "tv.tv_sec = 0;"  in Src/zle_main.c, line 479
(around FD_SET(SHTTY, &foofd); if ((tv.tv_usec = cost *
costmult) > 500000) ...

as far as I can see, the bug is still there in the rh6.0
srpm for zsh.

Comment 1 Jeff Johnson 1999-05-09 20:10:59 UTC
Fixed in zsh-3.0.5-11.src.rpm. Thanks for the patch.