summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--notes/lockfiles.mdwn5
1 files changed, 3 insertions, 2 deletions
diff --git a/notes/lockfiles.mdwn b/notes/lockfiles.mdwn
index 7db4ad8..39eecda 100644
--- a/notes/lockfiles.mdwn
+++ b/notes/lockfiles.mdwn
@@ -3,8 +3,9 @@
## Random example shell scripts out on the web
All locks need a read/compare/delete/write transaction that is not practical
-with the shell alone. Imagine a `sleep` statement in front of the
-`rm stalelock` operation and what that would do to other processes.
+with the shell alone. Imagine a `sleep` statement in front of or inbetween the
+`mv lock stalelock` `unlink stalelock` `write lock` operations and what that
+would do to other processes.
Process name comparison won't work very well as scripts aren't always executed
under their own name or even as their own process. For example,