Zsh Mailing List Archive
Messages sorted by:
Re: zsh-4.3.1 problem on FreeBSD
- X-seq: zsh-workers 30073
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Herbert J. Skuhra" <hskuhra@xxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: zsh-4.3.1 problem on FreeBSD
- Date: Sun, 01 Jan 2012 12:08:52 -0800
- In-reply-to: <firstname.lastname@example.org>
- List-help: <mailto:email@example.com>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <email@example.com> <111226183140.ZM23495@torch.brasslantern.com> <firstname.lastname@example.org> <CAH+w=7Z_y7m17b40v+WzJKMhDd-ZWH6bwYYVwt7R0H8Fger9YA@mail.gmail.com> <email@example.com>
On Jan 1, 3:25pm, Herbert J. Skuhra wrote:
} Subject: Re: zsh-4.3.1 problem on FreeBSD
} On Tue, 27 Dec 2011 16:53:15 -0800
} Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
} > Out of curiosity, what happens if you put a "sleep 5" somewhere in
} > your init files? I'm wondering if there's some kind of race between
} > the terminal getting opened and the first attempt to output something.
} Adding a "sleep x" (x >= 0) to ~/.zshrc does indeed help.
Ahh, with that bit of data everything else makes a lot more sense.
Unfortunately I'm not entirely sure what to do about it. In order for
the the ZLE_CMD_RESET_PROMPT change to have made a difference to the
behavior, the SIGWINCH must be arriving after zleread() is called for
the first time, because that's where zleactive gets set to 1, but it
isn't possible to tell exactly where in zleread() that happens.
Try the patch below (with the "sleep" removed from .zshrc) and let us
know if it resolves the problem?
If it does, I wonder if we should just queue_signals()/unqueue_signals()
around the entire body of zrefresh(), always? Or is this the only place
that's important? (And is it important to protect initmodifier() too?
[one line below the context shown in the first hunk of this patch])
RCS file: /extra/cvsroot/zsh/zsh-4.0/Src/Zle/zle_main.c,v
retrieving revision 1.39
diff -c -r1.39 zle_main.c
--- zle_main.c 20 Dec 2011 17:13:38 -0000 1.39
+++ zle_main.c 1 Jan 2012 20:05:30 -0000
@@ -1200,6 +1200,9 @@
zleactive = 1;
resetneeded = 1;
errflag = retflag = 0;
@@ -1208,6 +1211,7 @@
prefixflag = 0;
Messages sorted by: