Steven Chamberlain wrote:
> I wonder though, in this context, is it referring to the kernel (so we
> should return "BSD" here) or userland traits (we are actually more like
> (GNU/)"LINUX").

In this context, the only difference it makes is whether to use vfork()
or posix_spawn().  Linux and FreeBSD each implement both.  The former is
somewhat deprecated and the latter more portable (any glibc-based
platform will have it), so I would go with:

    if (osName.equals("Linux")) { return LINUX; }
    if (osName.contains("GNU")) { return BSD; }

even if the "BSD" enum is a bit confusing.

Regards,
-- 
Steven Chamberlain
[email protected]

Attachment: signature.asc
Description: Digital signature

Reply via email to