* Ralf Wildenhues wrote on Sun, Jan 23, 2011 at 09:39:59AM CET:
> Updated patch below. Question remains whether the whole patch
> is overkill or not?
Here's the answer:
http://sourceware.org/ml/binutils/2011-01/msg00366.html
I've committed the patch as shown below now.
Thanks,
Ralf
move-if
Hi Paul,
thanks for the review.
* Paul Eggert wrote on Sat, Jan 22, 2011 at 09:07:08PM CET:
> On 01/22/2011 08:03 AM, Ralf Wildenhues wrote:
>
> > -if test -r "$2" && cmp -s -- "$1" "$2"; then
> > +if test -r "$2" && $cmpprog -- "$1" "$2" >/dev/null; then
> >rm -f -- "$1"
> > else
> > - mv
On 01/22/2011 08:03 AM, Ralf Wildenhues wrote:
> -if test -r "$2" && cmp -s -- "$1" "$2"; then
> +if test -r "$2" && $cmpprog -- "$1" "$2" >/dev/null; then
>rm -f -- "$1"
> else
> - mv -f -- "$1" "$2"
> + if mv -f -- "$1" "$2"; then :; else
> +# Ignore failure due to a concurrent move-i
A small poll: can anybody confirm whether something like this:
while touch a b; mv -f a c & mv -f b c & wait; do :; done
can ever fail with EBUSY from rename(2), say, on an SMP system on NFS
or in some other weird setup? Can it fail on w32? Or with some Linux
kernel versions only?
Asking bec