Skip to content

Commit

Permalink
Add missing declarations
Browse files Browse the repository at this point in the history
Signed-off-by: ArkaSaha30 <[email protected]>
  • Loading branch information
ArkaSaha30 committed May 23, 2024
1 parent 3267daf commit 70726c4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkg/expect/expect.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,21 @@ import (

const DEBUG_LINES_TAIL = 40

var (
ErrProcessRunning = fmt.Errorf("process is still running")
)

type ExpectProcess struct {
cmd *exec.Cmd
fpty *os.File
wg sync.WaitGroup

mu sync.Mutex // protects lines and err
lines []string
count int // increment whenever new line gets added
err error
mu sync.Mutex // protects lines and err
lines []string
count int // increment whenever new line gets added
err error
exitErr error // process exit error
exitCode int

// StopSignal is the signal Stop sends to the process; defaults to SIGKILL.
StopSignal os.Signal
Expand Down

0 comments on commit 70726c4

Please sign in to comment.