summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 364477c..4a3e324 100644
--- a/README.md
+++ b/README.md
@@ -51,6 +51,15 @@ different queues for different purposes is encouraged.
 All these operations take worst-case quadratic time in the amount of
 lock files produced, so you should clean them regularly.
 
+## Assumptions
+
+`nq` will only work correctly when:
+- `$NQDIR` (respectively `.`) is writable.
+- `flock(2)` works in `$NQDIR` (respectively `.`).
+- `gettimeofday` behaves monotonic (using `CLOCK_MONOTONIC` would
+  create confusing file names).
+- No other programs put files matching `,*` into `$NQDIR` (respectively `.`).
+
 ## nq helpers
 
 Two helper programs are provided: