mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 09:21:32 +00:00
Include pwd dir to StartProcess
This commit is contained in:
@ -24,8 +24,9 @@ type Process struct {
|
||||
|
||||
// execPath: command name
|
||||
// args: args to command. (should not include name)
|
||||
func StartProcess(label string, execPath string, args []string, inFile io.Reader, outFile io.WriteCloser) (*Process, error) {
|
||||
func StartProcess(label string, dir string, execPath string, args []string, inFile io.Reader, outFile io.WriteCloser) (*Process, error) {
|
||||
cmd := exec.Command(execPath, args...)
|
||||
cmd.Dir = dir
|
||||
cmd.Stdout = outFile
|
||||
cmd.Stderr = outFile
|
||||
cmd.Stdin = inFile
|
||||
|
Reference in New Issue
Block a user