1 |
Hi Zac, |
2 |
|
3 |
On Thu, 22 Sep 2016 20:48:26 -0700 |
4 |
Zac Medico <zmedico@g.o> wrote: |
5 |
|
6 |
> On Thu, Sep 22, 2016 at 8:23 PM, Kerin Millar <kfm@×××××××××.net> wrote: |
7 |
> > Duly updated to use any instead of ==, as recommended by Brian Dolbec. |
8 |
> > |
9 |
> > -- |
10 |
> > Kerin Millar <kfm@×××××××××.net> |
11 |
> |
12 |
> My first choice would be to use a small test case to detect when ipc |
13 |
> is broken, and disable it dynamically. A good example of such a test |
14 |
> is the can_poll_device function here: |
15 |
> |
16 |
> https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/util/_eventloop/EventLoop.py?h=portage-2.3.1#n597 |
17 |
|
18 |
This is a good idea. I suspect a faulty implementation of (e)poll, but the exact manner in which WSL is falling short is something that eludes me. Should I manage to figure out, I'll likely propose an alternative workaround. |
19 |
|
20 |
> |
21 |
> If it's not possible to use a test similar to the above, maybe it's |
22 |
> best to use /proc/version or /proc/sys/kernel/osrelease as mentioned |
23 |
> in the following issue: |
24 |
> |
25 |
> https://github.com/Microsoft/BashOnWindows/issues/423 |
26 |
|
27 |
I had read this prior but didn't find it convincing. However unlikely it may seem, someone could add Microsoft to EXTRAVERSION - for an Azure guest perhaps - and break such a heuristic. By contrast, the chances of /dev/lxss existing outside of the (L)inu(X) (S)ub(S)ystem are infinitesimally small. |
28 |
|
29 |
-- |
30 |
Kerin Millar <kfm@×××××××××.net> |