Revision 7261
Added by Aaron Marcuse-Kubitza almost 12 years ago
bin/waitself | ||
---|---|---|
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 |
|
0 | 8 |
Also available in: Unified diff
Added waitself