in reply to Unique filename
This generates a classic race condition. To avoid that you need to have this function open the file with the O_EXCL flag specified and then retry with the next free file name if that fails.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
`Re: (tye)Re: Unique filename
by tachyon (Chancellor) on May 24, 2001 at 10:42 UTC |