Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Jan 17, 2024
1 parent ce36c9d commit d6bc542
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions libbeat/tests/integration/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ func (b *BeatProc) Start(args ...string) {
func (b *BeatProc) startBeat() {
b.cmdMutex.Lock()
defer b.cmdMutex.Unlock()

_, _ = b.stdout.Seek(0, 0)
_ = b.stdout.Truncate(0)
_, _ = b.stderr.Seek(0, 0)
_ = b.stderr.Truncate(0)

os.Pipe()
cmd := exec.Cmd{
Path: b.fullPath,
Args: b.Args,
Expand All @@ -234,11 +234,6 @@ func (b *BeatProc) startBeat() {
b.stdin, err = cmd.StdinPipe()
require.NoError(b.t, err, "could not get cmd StdinPipe")

// var procAttr os.ProcAttr
// procAttr.Files = []*os.File{b.stdin, b.stdout, b.stderr}
//
// process, err := os.StartProcess(b.fullPath, b.Args, &procAttr)

err = cmd.Start()
require.NoError(b.t, err, "error starting beat process")

Expand Down
Binary file removed x-pack/filebeat/filebeat.stdinreader
Binary file not shown.

0 comments on commit d6bc542

Please sign in to comment.