[pass] [PATCH v2] clip: don't race between pass instances in restore

Jason A. Donenfeld Jason at zx2c4.com
Sat Mar 22 08:01:58 CET 2014

On Mar 22, 2014 12:42 AM, "Matthew Cengia" <mattcen at gmail.com> wrote:
> If you're happy relying on that, I won't object. I didn't suggest pkill
> because it's not POSIX, and aside from Bash, I usually try to stick to
> external binaries that are POSIX-compliant. As you say though, both OSX
> and FreeBSD seem to have pkill, so this works for me.

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...

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20140322/bae6e871/attachment.html>

More information about the Password-Store mailing list