Commit 4aad16e
committed
tty: write filename in a file, don't symlink to /dev
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>1 parent 461b3f9 commit 4aad16e
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | | - | |
| 761 | + | |
762 | 762 | | |
763 | 763 | | |
764 | | - | |
765 | | - | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
766 | 767 | | |
767 | 768 | | |
768 | | - | |
| 769 | + | |
| 770 | + | |
769 | 771 | | |
770 | 772 | | |
771 | 773 | | |
| |||
0 commit comments