[pacman-dev] [PATCH] tolerate broken logpipe
Ralph Corderoy
ralph at inputplus.co.uk
Mon Aug 5 11:26:07 UTC 2019
Hi Allan,
> > > @@ -428,7 +428,7 @@ run_function() {
> > > $pkgfunc &>"$logpipe"
> > >
> > > wait $teepid
> > > - rm "$logpipe"
> > > + rm -f "$logpipe"
>
> I don't understand this either... Note that there is no evidence of
> this occurring when running makepkg directly. Only under the Arch
> devtools package.
Strictly speaking, shouldn't that be ‘wait -f’? I don't know if it's
only job control that could cause a change in tee's status Also, wait's
exit status is ignored; reporting an unusual status may give a clue.
An rm without -f could be attempted first and if that fails then report
its exit status and try again with -f, checking that second rm too.
Same end result, ‘rm -f’, but perhaps more light shed on the problem.
--
Cheers, Ralph.
More information about the pacman-dev
mailing list