Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABg4E-k1G6zZkYj_d7hNxnREQC+S3Wr7KfRmYCTng0w3SQKcBQ@mail.gmail.com>
Date: Wed, 15 Nov 2023 17:00:51 -0500
From: Tavian Barnes <tavianator@...ianator.com>
To: musl@...ts.openwall.com
Subject: Feature request: posix_spawnattr_setrlimit_np()

I have a program that raises its soft RLIMIT_NOFILE, but wants to
spawn processes with the original value (in case they use select(),
for example).  There seems to be no nice way to do this with
posix_spawn().  I can temporarily lower the rlimit in the parent, but
that interferes with other threads, and can make posix_spawn() fail
with EMFILE.

Corresponding glibc feature request:
https://sourceware.org/bugzilla/show_bug.cgi?id=31049

-- 
Tavian Barnes

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.