bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #46481] install-info can "corrupt" dir file if interrupted.


From: Gavin Smith
Subject: Re: [bug #46481] install-info can "corrupt" dir file if interrupted.
Date: Sun, 22 Nov 2015 20:54:03 +0000

On 20 November 2015 at 22:23, Pedrum Mohageri <address@hidden> wrote:
> I suspect it was a control-c from command line (at least for me). Once it
> gets corrupted (meaning a truncated file), it'll stay like that until a user
> either removes the dir file and recreates the index.
>
> Signal handlers are tricky and have certain limitations (see below link). I
> guess a quick fix could be to look for a zero byte dir file and remove it,
> but I'd suggest fixing how the actual writes are being done.
>
> https://www.gnu.org/software/libc/manual/html_node/Nonreentrancy.html

I've committed a change that means if the length of the dir file is
zero, it will be removed and a new one will be created.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]