:>> 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
- Re: soft updates performance Greg Black
- Re: soft updates performance Kent Stewart
- Re: soft updates and qmail (RE: qma... Tony Finch
- Re: soft updates and qmail (RE: qma... Greg Black
- Re: soft updates and qmail (RE: qma... mouss
- Re: soft updates and qmail (RE: qma... Greg Black
- Re: soft updates and qmail (RE: qma... Alfred Perlstein
- Re: soft updates and qmail (RE: qma... Greg Black
- Re: soft updates and qmail (RE: qma... Alfred Perlstein
- Re: soft updates and qmail (RE: qma... Tony Finch
- Re: soft updates and qmail (RE: qma... Matt Dillon
- Re: soft updates and qmail (RE: qmail IO problem... Julian Elischer
- Re: soft updates and qmail (RE: qmail IO pro... Matt Dillon
- Re: soft updates and qmail (RE: qmail IO problems) Andre Oppermann
- Re: soft updates and qmail (RE: qmail IO problems) Andre Oppermann
- Re: soft updates and qmail (RE: qmail IO problems) Matt Dillon
- Re: soft updates and qmail (RE: qmail IO problem... Mike Silbersack
- Re: soft updates and qmail (RE: qmail IO pro... Matt Dillon
- Re: soft updates and qmail (RE: qmail IO... Andre Oppermann
- Re: soft updates and qmail (RE: qmail IO pro... Andre Oppermann
- Re: soft updates and qmail (RE: qmail IO problem... Jos Backus