Project

General

Profile

« Previous | Next » 

Revision 7262

waitpid, lockfile: Changed $interval default to 5s to work with smaller imports, where less waiting is needed

View differences:

lockfile
2 2
# Wraps lockfile/dotlockfile
3 3
# Usage: env [interval=...] self lockfile
4 4

  
5
: "${interval=60}" # s
5
: "${interval=5}" # s
6 6

  
7 7
if test "$(uname)" = Darwin; then
8 8
    while ! shlock -p "$PPID" -f "$1"; do sleep "$interval"; done

Also available in: Unified diff