Date: Mon, 24 Jan 2022 13:17:23 -0800 From: enh <enh@...gle.com> To: libc-coord@...ts.openwall.com Cc: Maciej Żenczykowski <maze@...gle.com> Subject: posix_spawn() support for close_range(CLOSE_RANGE_CLOEXEC) 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 https://android-review.googlesource.com/c/platform/bionic/+/1955269 for the proposed implementation.) anyone aware of any other work in this kind of direction? the idea seems reasonable, and it seems like darwin has this functionality (POSIX_SPAWN_CLOEXEC_DEFAULT in http://www.polarhome.com/service/man/?qf=posix_spawnattr_setflags&tf=2&of=Darwin&sf=3 for example), but afaik they implement posix_spawn() as a *syscall* rather than libc, so i was curious if anyone had any good/bad experience implementing something along these lines on linux/in a libc?
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.