#!/bin/sh
# Waits for processes that are the same as the current script
# Usage: self "$0"
selfDir="$(dirname -- "$0")"
exec "$selfDir/lockfile" "$1.lock" # need exec to inherit PPID