You could try some advisory locking, flock or a lockfile, but the canonical solution is to rename a temp. file once it is complete.
The other process might create the archive in its build directory, then move it to queue directory. Unpacker process would periodically process the queue.
In reply to Re: Best way for testing the end of the filling of a Tar file before opening it.
by oiskuu
in thread Best way for testing the end of the filling of a Tar file before opening it.
by dirac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |