I'm after permanent files with unique and sequential file names.Then enforce that by storing a sequence number somewhere, permanently. Make all programs that create files in that directory, use it.
Think of an autoincrement field in a database (why not use that? SQLite might be a decent and fast solution), or a setup with a little file holding the number, pretty much like the "web access counters" of a decade ago.
In reply to Re: Avoiding race condition with sysopen
by bart
in thread Avoiding race condition with sysopen
by revdiablo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |