3 ms·
> Now obviously people these days generally know about that so hopefully don’t use predictable file names but that’s one way. Annoying side effect: now you got
by mschuster91 1y ago
> Now obviously people these days generally know about that so hopefully don’t use predictable file names but that’s one way.
Annoying side effect: now you gotta guess which process created the darn lockfile.
A more sensible approach is to do sanity checking on the lockfile and its contents (i.e. does the contained PID match one's own binary).
- seanhunter 1y ago> now you gotta guess which process created the darn lockfile Or you can use “lsof” to just tell you.