Project

General

Profile

« Previous | Next » 

Revision 7261

Added waitself

View differences:

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