:>> already existing?
:>
:>Why not just read the man page for rename(2) before making
:>suggestions?
:
:I did. I'm glad I was right that it's deleting the destination that is
:the problem. I would have thought it would be easy to be sure that
:spool filenames are unique, but OTOH I guess that's not completely
:robust.
:
:Tony.
:-- 
:f.a.n.finch    [EMAIL PROTECTED]    [EMAIL PROTECTED]

    Yes, rename() will 'delete' the destination file if it previously
    existed.  Of course, if the spool file names are unique then you
    are not in danger of deleting anything on the destination.

    If softupdates is turned on, rename() is 100% safe -- softupdates will
    guarentee that the file will exist in one directory or the other, and
    never get lost.  The absolute worst crash-case that can occur is for
    the file to wind up in both directories (as if a hardlink had been
    issued).  There is no need for a link() operation followed by a remove().

                                                -Matt



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to