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

2015-11-20 Thread Mathieu Lirzin
Hi, Gavin Smith writes: > On 20 November 2015 at 22:53, Karl Berry wrote: >> My $0.1, fwiw: >> >> 1) a signal handler seems crazy to me. That would imply every program >> that writes anything should catch every signal just because someone >> might interrupt it. >> >> 2) if I type "gcc foo.c

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

2015-11-20 Thread Assaf Gordon
Hello, Regarding a 'safer' way to replace files during installation: On 11/20/2015 06:22 PM, Gavin Smith wrote: On 20 November 2015 at 22:53, Karl Berry wrote: 3) all that said, writing to a temp file and renaming is at least viable, although rather a pain and susceptible to many hard-to-pin-

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

2015-11-20 Thread Gavin Smith
On 20 November 2015 at 22:53, Karl Berry wrote: > My $0.1, fwiw: > > 1) a signal handler seems crazy to me. That would imply every program > that writes anything should catch every signal just because someone > might interrupt it. > > 2) if I type "gcc foo.c" and hit ^C while it's compiling, I

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

2015-11-20 Thread Karl Berry
My $0.1, fwiw: 1) a signal handler seems crazy to me. That would imply every program that writes anything should catch every signal just because someone might interrupt it. 2) if I type "gcc foo.c" and hit ^C while it's compiling, I do not expect gcc to detect that and keep my previously-exis

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

2015-11-20 Thread Pedrum Mohageri
Resending. I forgot to reply-all. On Fri, Nov 20, 2015 at 3:19 AM, Gavin Smith wrote: > On 19 November 2015 at 21:48, Pedrum Mohageri > wrote: > > > Details: > > > > I use Arch and the package manager bailed out on several packages during > the > > install. I traced this to a failed install-inf

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

2015-11-20 Thread Stefan Husmann
Am 20.11.2015 um 12:19 schrieb Gavin Smith: > On 19 November 2015 at 21:48, Pedrum Mohageri wrote: > >> Details: >> >> I use Arch and the package manager bailed out on several packages during the >> install. I traced this to a failed install-info call to add entries for >> package to the 'dir' th

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

2015-11-20 Thread Gavin Smith
On 19 November 2015 at 21:48, Pedrum Mohageri wrote: > Details: > > I use Arch and the package manager bailed out on several packages during the > install. I traced this to a failed install-info call to add entries for > package to the 'dir' that info use. > > After strace'ng the code, I observe