[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#825514: GNU/kFreeBSD patch for openjdk-8



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
steven@pyro.eu.org

Attachment: signature.asc
Description: Digital signature


Reply to: