"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Thomas Adam <thomas@xteddy.org>
Subject:
Re: close-on-exec
To:
gameoftrees@openbsd.org
Date:
Wed, 29 Dec 2021 12:27:21 +0000

Download raw body.

Thread
  • Stefan Sperling:

    close-on-exec

    • Thomas Adam:

      close-on-exec

On Wed, 29 Dec 2021 at 11:56, Stefan Sperling <stsp@stsp.name> wrote:
x> Do all of the various C libraries in use on Linux systems support the
> close-on-exec flag? The linux kernel supports O_CLOEXEC since 2.6.23,
> glibc supports the fopen "e" flag since 2.7. I have not checked other
> libc, and I do not even know which libc are important to people running
> got-portable.

I think this should be fine.  I've been using O_CLOEXEC on Linux for
years without running into ancient version/portability problems.

As for different libc implementations, the two major ones which GoT is
likely to be linked against are libc and musl, both of which support
the O_CLOEXEC flag, so I think we should be OK with this.

Kindly,
Thomas