mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-09 07:47:54 +02:00
locate the weed binary
This commit is contained in:
1 parent
53ecae7c7b
commit
d8bda0b229
1 file changed
+5
-1
@@ -195,7 +195,11 @@ func runFuse(cmd *Command, args []string) bool {
|
||||
|
||||
// the master start the child, release it then finish himself
|
||||
if masterProcess {
|
||||
arg0 := os.Args[0]
|
||||
arg0, err := os.Executable()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
argv := append(os.Args, "-o", "child")
|
||||
|
||||
attr := os.ProcAttr{}
|
||||
|
||||
Reference in new issue
Block a user