zsh-users
 help / color / mirror / code / Atom feed
From: Yuri D'Elia <wavexx@users.sourceforge.net>
To: zsh-users@zsh.org
Subject: Re: Problems with precmd/urxvt
Date: Wed, 05 Dec 2012 15:35:07 +0100	[thread overview]
Message-ID: <k9nm2p$jfo$1@ger.gmane.org> (raw)
In-Reply-To: <121204080149.ZM22046@torch.brasslantern.com>

On 12/04/2012 05:01 PM, Bart Schaefer wrote:
> Possibly the -t test is blocking until the terminal is ready.  That
> would synchronize the shell with the parent urxvt, which would also
> explain this:
>
> } Strangely enough, not only I don't get the error anymore, but the
> } terminal title also seem to be always correctly set on startup
>
> On the other hand I'd have expected zsh's internals to do the equivalent
> of -t at some point during initialization, to decide whether the shell
> is interactive in the first place, so maybe introducing a tiny delay
> before the print is enough to break the race condition.

I spoke too soon. I got another interrupted call today.

It seems that, like you say, [ -t 0 ] just delays the call long enough 
for urxvt to be available most of the time, so it became very rare, but 
not absent.

I just suppressed the error now. This is tricky to debug and I'm quite 
sure urxvt is at fault (probably the message is due to the window being 
mapped, but maybe not managed yet!?). Just don't have time to debug it 
properly now.


      reply	other threads:[~2012-12-05 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-03  9:20 Yuri D'Elia
2012-12-03 15:48 ` Bart Schaefer
2012-12-04 14:10   ` Yuri D'Elia
2012-12-04 16:01     ` Bart Schaefer
2012-12-05 14:35       ` Yuri D'Elia [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='k9nm2p$jfo$1@ger.gmane.org' \
    --to=wavexx@users.sourceforge.net \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).