in reply to Re^5: A DWIM too far?
in thread A DWIM too far?

You'd still get the race condition, unless the underlying C API call was atomic

I'd hoped that it would have been obvious that this would need to be implemented without using rename(2) :-)