Skip to content

Commit

Permalink
Fix waiting for new events (elastic#10593)
Browse files Browse the repository at this point in the history
* Adding more syscalls to the whitelist in `libbeat`
 I have removed the seccomp policy of `journalbeat`. Four new syscalls has been added to the common policy instead: `fstatfs`, `getrlimit`, `ppoll` and `splice`.
* Eliminate possible deadlock when closing the client
* Previously, `journalbeat` was unable to read new entries from the journal after it has been started. Now it is fixed, and the reader code is much simpler now.
* updated vendored `github.com/coreos/go-systemd/sdjournal` to latest release (no changes)
  • Loading branch information
kvch authored Feb 14, 2019
1 parent 89dc1b8 commit 301402a
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 335 deletions.
122 changes: 0 additions & 122 deletions include/seccomp_linux_386.go

This file was deleted.

135 changes: 0 additions & 135 deletions include/seccomp_linux_amd64.go

This file was deleted.

2 changes: 1 addition & 1 deletion input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ func (i *Input) publishAll() {

// Stop stops all readers of the input.
func (i *Input) Stop() {
i.client.Close()
for _, r := range i.readers {
r.Close()
}
i.client.Close()
}

// Wait waits until all readers are done.
Expand Down
Loading

0 comments on commit 301402a

Please sign in to comment.