<p dir="ltr"><br>
On Mar 22, 2014 12:42 AM, "Matthew Cengia" <<a href="mailto:mattcen@gmail.com">mattcen@gmail.com</a>> wrote:<br>
> If you're happy relying on that, I won't object. I didn't suggest pkill<br>
> because it's not POSIX, and aside from Bash, I usually try to stick to<br>
> external binaries that are POSIX-compliant. As you say though, both OSX<br>
> and FreeBSD seem to have pkill, so this works for me.</p>
<p dir="ltr">Cool okay, we'll roll with it then. xclip and pbpaste aren't POSIX either, so I figure we've got a bit of latitude...</p>
<p dir="ltr">By the way, can you think of any way to wait for the ppid to exit, that's less racy than sleep or polling? We can't wait() because we aren't the parent, and inotify (on /proc/pid) is Linux-only and the CLI utilities aren't standard... I'd like a way to wait() on the ppid essentially, that's portable.</p>