Commit Graph

2 Commits

Author SHA1 Message Date
Brad Fitzpatrick d065aac5b7 Fix compilation on FreeBSD. Thanks to retzkek. Fixes Issue 168.
Change-Id: I554321932709c6961fc05533aa4255bd8127d323
2013-07-02 22:12:53 -07:00
mpl 62b5da6f99 find the path to the executable of the running instance
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
2012-11-14 16:10:50 +01:00