On Wed, Mar 15, 2006 at 09:23:08PM +0000, Roger Leigh wrote:
1) The file can be unlinked by another process in between the stat and
  the unlink, causing the unlink to fail.  ln should be aware this
  can happen, and not treat this as a fatal error.

Why?
2) Another process can create file between unlink and symlink, leading
  to symlink creation failing.  Again, ln should be aware creation
  may fail.  If the error is EEXIST, it should repeat the unlink and
  try again.

Again, why? Is there any practical purpose to changing any of this? I'm not sure I care too much about what happens if you're running a tight endless loop like that, because the outcome is going to be random (dependent on execute order) anyway.

Mike Stone


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to