fix windows
This commit is contained in:
parent
f0142febcf
commit
ccf2f4efd6
@ -10,12 +10,12 @@ import (
|
|||||||
"github.com/micro/go-micro/v3/runtime/local/process"
|
"github.com/micro/go-micro/v3/runtime/local/process"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (p *Process) Exec(exe *process.Exec) error {
|
func (p *Process) Exec(exe *process.Binary) error {
|
||||||
cmd := exec.Command(exe.Package.Path)
|
cmd := exec.Command(exe.Package.Path)
|
||||||
return cmd.Run()
|
return cmd.Run()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Process) Fork(exe *process.Exec) (*process.PID, error) {
|
func (p *Process) Fork(exe *process.Binary) (*process.PID, error) {
|
||||||
// create command
|
// create command
|
||||||
cmd := exec.Command(exe.Package.Path, exe.Args...)
|
cmd := exec.Command(exe.Package.Path, exe.Args...)
|
||||||
// set env vars
|
// set env vars
|
||||||
|
Loading…
Reference in New Issue
Block a user