Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#482525: failure to fcntl-lock history file, takes ages to create interactive session
- X-seq: zsh-workers 25083
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: martin f krafft <madduck@xxxxxxxxxx>, 482525@xxxxxxxxxxxxxxx
- Subject: Re: Bug#482525: failure to fcntl-lock history file, takes ages to create interactive session
- Date: Fri, 23 May 2008 13:24:08 +0000
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20080523094636.GA3814@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: martin f krafft <madduck@xxxxxxxxxx>, 482525@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080523094636.GA3814@xxxxxxxxxxxxxxxxxxxxxxxxxx>
On Fri, May 23, 2008 at 11:46:36AM +0200, martin f krafft wrote:
> When I log in to a machine where my ~ is NFS-mounted (lockd is in
> use), with hist_fcntl_lock set, it takes several minutes to get an
> interactive prompt. The reason is that the locking seems to fail,
> according to strace:
>
> open("/home/madduck/.var/zsh/history-diamond", O_RDWR|O_NOCTTY) = 3
> fcntl64(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EIO (Input/output error)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGCHLD, NULL, {0x80a88a0, [], SA_INTERRUPT}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({1, 0}, {1, 0}) = 0
>
> This repeats a number of times before it finally moves on. Complete
> strace is attached. Search for "EIO".
Out of curiosity, does the same thing happen if you use -o nolock on the
client?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author