summaryrefslogtreecommitdiff
path: root/src/platform/freebsd.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-16 14:27:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-16 15:29:17 +0200
commit3f250ecca3da1e2dcf0a85d788e286a0b7212967 (patch)
tree43bae17cbcb45d75b45db10e1840a34d6b43dfcb /src/platform/freebsd.sh
parentee0d3f1a7884877a50ddc3d334777475cc2e3ea9 (diff)
downloadpass-3f250ecca3da1e2dcf0a85d788e286a0b7212967.tar.gz
pass-3f250ecca3da1e2dcf0a85d788e286a0b7212967.tar.bz2
pass-3f250ecca3da1e2dcf0a85d788e286a0b7212967.zip
Better error messages.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
h group has a TTL specified in minutes. When a page is requested, a cached filename is stat(2)'ed and st_mtime is compared to time(2). If TTL has expired (or the file didn't exist), the cached file is regenerated. When generating a cached file, locking is used to avoid parallell processing of the request. If multiple processes tries to aquire the same lock, the ones who fail to get the lock serves the (expired) cached file. If the cached file don't exist, the process instead calls sched_yield(2) before restarting the request processing. Signed-off-by: Lars Hjemli <hjemli@gmail.com>