We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3267daf commit 70726c4Copy full SHA for 70726c4
pkg/expect/expect.go
@@ -33,15 +33,21 @@ import (
33
34
const DEBUG_LINES_TAIL = 40
35
36
+var (
37
+ ErrProcessRunning = fmt.Errorf("process is still running")
38
+)
39
+
40
type ExpectProcess struct {
41
cmd *exec.Cmd
42
fpty *os.File
43
wg sync.WaitGroup
44
- mu sync.Mutex // protects lines and err
- lines []string
- count int // increment whenever new line gets added
- err error
45
+ mu sync.Mutex // protects lines and err
46
+ lines []string
47
+ count int // increment whenever new line gets added
48
+ err error
49
+ exitErr error // process exit error
50
+ exitCode int
51
52
// StopSignal is the signal Stop sends to the process; defaults to SIGKILL.
53
StopSignal os.Signal
0 commit comments