root/trunk/bin/waitself @ 12808
1 |
#!/bin/sh
|
---|---|
2 |
# Waits for processes that are the same as the current script
|
3 |
# Usage: self "$0"
|
4 |
|
5 |
selfDir="$(dirname -- "$0")" |
6 |
|
7 |
exec "$selfDir/lockfile" "$1.lock" # need exec to inherit PPID |