Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: up-arrow no longer works right
- X-seq: zsh-users 13952
- From: Andrey Borzenkov <arvidjaar@xxxxxxxxx>
- To: Zsh Users List <zsh-users@xxxxxxxxxx>
- Subject: Re: up-arrow no longer works right
- Date: Fri, 20 Mar 2009 20:52:12 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=522RoxEI15LFIpGNpLeMgiWAu7rUFxc6I/WCWLzcAoc=; b=SkNyMwjSBz6ftcRgizkTsbh0Ndj6/iy9VL/BTuAzy3AonwptaH6CLoq9t2ZEizfZG9 npoNkA6gmnLW22zirpM1KmPxgqXYCH0UbiUhj3k3CcvzbdnBkR3Ov6ddT8H6TuTGCtp6 JngNcLjCaX7JWDo7Rl2HSJ+OM08kjBTIeDjMc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=PJq3Y3rbnUwhOS/Tlr20IfmWZ6GN9wfPyKHG9cQnjxBJXKtM16OYJzwSsRv4Q09lUz Mj+bTUxXwdHQ31ErCbGi/Yi6WXdmucWQ6K9NPGmDdJz9p1gys6QuTFY0fW7hVfym4G1T aeCuqsPlTUsZvayI6b8gHW3s7qKu9HKDg/qG4=
- In-reply-to: <20090320151617.GF22844@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <d2ecb10b0903191838y68e1dfbbsa80289a52256eb2a@xxxxxxxxxxxxxx> <090320073326.ZM3499@xxxxxxxxxxxxxxxxxxxxxx> <20090320151617.GF22844@xxxxxxxxxxxxxxxxxxx>
On 20 ÐÐÑÑÐ 2009 18:16:17 Vincent Lefevre wrote:
> 15:29:05 ioctl(10, FIONREAD, [0]) = 0
> 15:29:05 ioctl(10, TIOCSPGRP, [20933]) = 0
> 15:29:05 ioctl(10, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig
> icanon echo ...}) = 0 15:29:05 ioctl(10, SNDCTL_TMR_STOP or TCSETSW,
> {B38400 opost isig -icanon -echo ...}) = -1 EINTR (Interrupted system
> call) 15:29:05 --- SIGCHLD (Child exited) @ 0 (0) ---
> 15:29:05 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [CHLD], 8) = 0
> 15:29:05 rt_sigprocmask(SIG_SETMASK, [CHLD], ~[KILL STOP RTMIN RT_1],
> 8) = 0 15:29:05 wait4(4294967295, 0x7fffaf3a553c, WNOHANG|WSTOPPED,
> 0x7fffaf3a5310) = 0 15:29:05 rt_sigreturn(0xffffffff) = -1
> EINTR (Interrupted system call) 15:29:05 write(10,
> "\r\33[m\33[27m\33[24m\33[Jvin% ", 22) = 22 [...]
>
Actually zsh explicitly contains code to retry failed system call:
# ifdef HAVE_TCGETATTR
# ifndef TCSADRAIN
# define TCSADRAIN 1 /* XXX Princeton's include files are screwed up
*/
# endif
tcsetattr(SHTTY, TCSADRAIN, &ti->tio);
while (tcsetattr(SHTTY, TCSADRAIN, &ti->tio) == -1 && errno ==
EINTR)
;
# else
ioctl(SHTTY, TCSETS, &ti->tio);
while (ioctl(SHTTY, TCSETS, &ti->tio) == -1 && errno == EINTR)
# endif
/* zerr("settyinfo: %e",errno)*/ ;
(looks like somewhat misplaced `;' but this should not be the reason).
May be it interacts with signal handling somehow.
Attachment:
signature.asc
Description: This is a digitally signed message part.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author