(written by jfs) to restart aegisub when it actually quites using KQUEUE to monitor the process until it dies then executing /usr/bin/open <bundle_path> Originally committed to SVN as r2689.