[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.
- [bug #46481] install-info can "corrupt" dir file if interrupted., Pedrum Mohageri, 2015/11/19
- Re: [bug #46481] install-info can "corrupt" dir file if interrupted., Gavin Smith, 2015/11/20
- Re: [bug #46481] install-info can "corrupt" dir file if interrupted., Stefan Husmann, 2015/11/20
- Re: [bug #46481] install-info can "corrupt" dir file if interrupted., Pedrum Mohageri, 2015/11/20
- Re: [bug #46481] install-info can "corrupt" dir file if interrupted., Karl Berry, 2015/11/20
- Re: [bug #46481] install-info can "corrupt" dir file if interrupted., Gavin Smith, 2015/11/20
- Re: [bug #46481] install-info can "corrupt" dir file if interrupted., Assaf Gordon, 2015/11/20
- Re: [bug #46481] install-info can "corrupt" dir file if interrupted., Karl Berry, 2015/11/21
- Re: [bug #46481] install-info can "corrupt" dir file if interrupted., Pádraig Brady, 2015/11/22
- Re: [bug #46481] install-info can "corrupt" dir file if interrupted., Mathieu Lirzin, 2015/11/21
- Re: [bug #46481] install-info can "corrupt" dir file if interrupted.,
Gavin Smith <=