[lkml]   [1998]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Anybody out there? (ETXTBSY)
Followup to:  <>
By author: "Juan J. Quintela" <>
In newsgroup:
> Hi,
> From the man page of rename:
> int rename(const char *oldpath, const char *newpath);
> .....
> If newpath already exists it will be atomically overwrit­
> ^^^^^^^^
> ten (subject to a few conditions - see ERRORS below), so
> ^^^
> that there is no point at which another process attempting
> to access newpath will find it missing.
> You don't want to overwrite the existing or your running
> binaries running against it will stop work in that moment.
> Cheers, Juan.

This is a man page bug; it doesn't actually overwrite (it unlinks the
old file). I didn't realize rename() did this, but this is a Good


PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74
See for web page and full PGP public key
I am Bahá'í -- ask me about it or see
"To love another person is to see the face of God." -- Les Misérables

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:44    [W:0.069 / U:1.156 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site