Skip to content

Commit 70726c4

Browse files
committed
Add missing declarations
Signed-off-by: ArkaSaha30 <[email protected]>
1 parent 3267daf commit 70726c4

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

pkg/expect/expect.go

+10-4
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,21 @@ import (
3333

3434
const DEBUG_LINES_TAIL = 40
3535

36+
var (
37+
ErrProcessRunning = fmt.Errorf("process is still running")
38+
)
39+
3640
type ExpectProcess struct {
3741
cmd *exec.Cmd
3842
fpty *os.File
3943
wg sync.WaitGroup
4044

41-
mu sync.Mutex // protects lines and err
42-
lines []string
43-
count int // increment whenever new line gets added
44-
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
4551

4652
// StopSignal is the signal Stop sends to the process; defaults to SIGKILL.
4753
StopSignal os.Signal

0 commit comments

Comments
 (0)