Am 15.04.2015 15:48 schrieb "Tim Landscheidt" <t...@tim-landscheidt.de>:
>
> I wrote:
>
> > [...]
>
> > IMHO apt-get should not delete temporary files owned by another
> > process.
>
> > [...]
>
> That may unnecessarily narrow down potential fixes for this
> bug.  Of course it would be possible as well (and maybe
> preferable) for "apt-get update" (and other commands?) to
> create their temporary files elsewhere or, depending on com-
> patibility and privilege considerations, use linkat(2) with
> AT_EMPTY_PATH.
>

Clean specifically includes the temporary files, so elsewhere is not an
option. Linkat would be nice in theory, but complicates the code even more.

Locking seems like the best idea IMO, not sure how things currently work
for cache though.

Reply via email to