in reply to Re: lock files vs. non-predictable file names
in thread lock files vs. non-predictable file names
Opening the file by writing to it can lead to issues of people, waiting for your process to start, then placing a symlink to another file. It isn't easy and there is definitely an element of luck, but keep trying and you will hit it eventually. So create with an append, then test for the symlink if you are paranoid.
Incidentally another model to look at for sentinal files is Simple Locking.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE (tilly) 2: lock files vs. non-predictable file names
by RuphSkunk (Acolyte) on Aug 26, 2000 at 01:57 UTC |