Revision 7427
Added by Aaron Marcuse-Kubitza about 12 years ago
bin/lockfile | ||
---|---|---|
9 | 9 |
if test "$(uname)" = Darwin; then |
10 | 10 |
while ! shlock -p "$PPID" -f "$1"; do sleep "$interval"; done |
11 | 11 |
else |
12 |
exec "$selfDir/dotlockfile" -l -r -1 -p "$1" # need exec to inherit PPID
|
|
12 |
exec "$selfDir/dotlockfile" -l -r 2147483647 -p "$1" # exec to inherit PPID
|
|
13 | 13 |
fi |
Also available in: Unified diff
lockfile: Linux: Added workaround for bug in dotlockfile where using -1 to retry indefinitely doesn't work, so need to use large integer instead