Skip to content

Conversation

@djs55
Copy link
Collaborator

@djs55 djs55 commented Jul 6, 2020

If the osquery tool[1] is running and scanning a directory containing the tty symlink, it will follow the link to /dev/ttys* and start some kind of infinite loop involving the debug console. This causes hyperkit's CPU to spike and for the console itself to be spammed with it's own output.

The easiest workaround is to not create the symlink, but write the name of the tty in a file instead. Therefore for debugging we can still run

screen $(cat ~/Library/Containers/com.docker.docker/Data/vms/0/tty)

(or equivalent)

Reported originally around here[2]

[1] https://osquery.io/downloads/
[2] docker/for-mac#3499 (comment)

Signed-off-by: David Scott dave@recoil.org

If the osquery tool[1] is running and scanning a directory containing
the `tty` symlink, it will follow the link to `/dev/ttys*` and start
some kind of infinite loop involving the debug console. This causes
hyperkit's CPU to spike and for the console itself to be spammed with
it's own output.

The easiest workaround is to not create the symlink, but write the name
of the tty in a file instead. Therefore for debugging we can still run

```
screen $(cat ~/Library/Containers/com.docker.docker/Data/vms/0/tty)
```
(or equivalent)

Reported originally around here[2]

[1] https://osquery.io/downloads/
[2] docker/for-mac#3499 (comment)

Signed-off-by: David Scott <dave@recoil.org>
Copy link

@ebriney ebriney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@djs55
Copy link
Collaborator Author

djs55 commented Jul 7, 2020

Thanks!

@djs55 djs55 merged commit 003426b into moby:master Jul 7, 2020
@djs55 djs55 deleted the osquery branch July 7, 2020 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants