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: Karl Berry
Subject: Re: [bug #46481] install-info can "corrupt" dir file if interrupted.
Date: Fri, 20 Nov 2015 22:53:01 GMT

My $0.00001, 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-existing foo.o.
It's not clear to me that there is really a bug here, although it's
unfortunate that there are repercussions at the package managers.

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-down
bugs, if gavin wants to deal with it.  gnu libc, or latest posix,
certainly cannot be assumed, and it's usually unclear from documentation
what functions imply what prerequisites, unfortunately.  Maybe there is
a gnulib module that already does the job.  -k



reply via email to

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