Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh spinning on .zsh_history.LOCK on start


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

    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!


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

Attachment: pgpi0vZBsbptq.pgp
Description: PGP signature

Messages sorted by: Reverse Date, Date, Thread, Author