zsh-users
 help / color / mirror / code / Atom feed
From: Florian Bruhin <me@the-compiler.org>
To: zsh-users@zsh.org
Subject: zsh spinning on .zsh_history.LOCK on start
Date: Wed, 11 Jun 2014 07:39:38 +0200	[thread overview]
Message-ID: <20140611053938.GP19485@lupin> (raw)

[-- Attachment #1: Type: text/plain, Size: 1315 bytes --]

Hi,

I have a weird problem with zsh since some while:

Sometimes when starting (it seems it always happens after a fresh
boot), I don't get any prompt from zsh.

When I attach strace to the process, it seems to be spinning on these
lines:

    symlink("/pid-1600/host-ginny", "/home/florian/.zsh_history.LOCK") = -1 EEXIST (File exists)
    lstat("/home/florian/.zsh_history.LOCK", {st_mode=S_IFLNK|0777, st_size=19, ...}) = 0
    rt_sigprocmask(SIG_BLOCK, [CHLD], [WINCH], 8) = 0
    rt_sigaction(SIGCHLD, NULL, {0x474b10, [], SA_RESTORER|SA_INTERRUPT, 0x7fd243ce2df0}, 8) = 0
    rt_sigprocmask(SIG_SETMASK, [WINCH], NULL, 8) = 0
    nanosleep({1, 0}, 0x7fffa6830380)       = 0

When I delete the lockfile, it starts up normally. After waiting some
while it does as well sometimes. Then the problem goes away, and some
weeks later magically appears again.

I also tried doing `setopt HIST_FCNTL_LOCK` in ~/.zshrc but that
didn't help.

I'm using zsh 5.0.5 under Archlinux.

Any ideas on what's going wrong there? If there's anything else useful
I can provide, please let me know!

Florian

-- 
http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
             GPG 0xFD55A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

             reply	other threads:[~2014-06-11  5:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-11  5:39 Florian Bruhin [this message]
2014-06-11  6:42 ` Bart Schaefer
2014-06-11  6:46   ` Florian Bruhin

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=20140611053938.GP19485@lupin \
    --to=me@the-compiler.org \
    --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).