Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 24 Jan 2022 22:24:31 +0100
From: Florian Weimer <>
To: enh <>
Cc:,  Maciej ┼╗enczykowski
Subject: Re: posix_spawn() support for

> we have a proposal to add a new posix_spawn() flag to bionic
> (Android's libc) that would mark all file descriptors not otherwise
> mentioned as close-on-exec.
> (see
> for the proposed implementation.)
> anyone aware of any other work in this kind of direction?

Solaris and glibc have posix_spawn_file_actions_addclosefrom_np (Solaris
was first).  Given that the execve is unavoidable (except for errors),
that seems pretty much equivalent.  Perhaps POSIX_SPAWN_CLOEXEC_DEFAULT
is a little bit easier to use?


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.