|
|
Subscribe / Log in / New account

Introducing io_uring_spawn

Introducing io_uring_spawn

Posted Oct 9, 2022 8:23 UTC (Sun) by izbyshev (guest, #107996)
In reply to: Introducing io_uring_spawn by ma4ris5
Parent article: Introducing io_uring_spawn

> With threads, all kinds of unknown things happen, including race conditions with open() and "CLOEXEC", so posix_spawn() lacks flag to prevent those race conditions by closing the unrelated fds before exec.

Modern glibc has posix_spawn_file_actions_addclosefrom_np().

See also the thread at https://www.openwall.com/lists/libc-coord/2022/01/24/7

AFAIK POSIX resists standardization of such functionality because it could interfere with "private" descriptors used by the implementation.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds