This implements osutil.SelfPath on darwin by trying a $PATH lookup
using the command invocation name. Stops the nagging "couldn't stat
devcam binary" message on OS X.
Change-Id: I42c7f5c30148d810ca753e0812b772db24e93356
The biggest obstacle is that syscall lacks Mkfifo on Solaris
(I've opened issue 8609 on Go for this).
Now I provide the same implementation for it as there is on Linux:
call Mknod.
github.com/cznic/fileutil needs IsEOF, so I've copied the plan9
(hole punching is stubbed out) implementation.
github.com/lib/pq: I've added solaris as a posix build tag.
Change-Id: Id667c488606a274849dc9b0af76abf1daeab5ad7
to restart camli properly
This change adds the functionality to find the path to
the currently running executable, so that camlistore
can be restarted without à priori knowledge of cwd.
It should work for linux, netBSD and freeBSD, and it
might work for openBSD.
The naive (os.Args[0]) approach is still used with
darwin.
Reference: https://codereview.appspot.com/6736069/
Change-Id: Icc9fc2b4e1b3542cfbe6c457c1fefbe762eff2f1