Author vstinner
Recipients gregory.p.smith, vstinner
Date 2019-10-08.23:00:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570575646.06.0.969902087971.issue38417@roundup.psfhosted.org>
In-reply-to
Content
> We should add an explicit feature for this

If we need to write a wrapper program for that, I would say that no, we don't "have to" provide something in the stdlib.

In OpenStack, I wrote prlimit.py which is a preexec-like wrapper program to apply resource limits when calling a program. It's just a pure Python implementation of the Unix prlimit program. The Python implementation is used when the prlimit progrma is not available.

https://github.com/openstack/oslo.concurrency/blob/master/oslo_concurrency/prlimit.py

IMHO it's perfectly fine to explain that a wrapper program is needed to implement preexec-like features.
History
Date User Action Args
2019-10-08 23:00:46vstinnersetrecipients: + vstinner, gregory.p.smith
2019-10-08 23:00:46vstinnersetmessageid: <1570575646.06.0.969902087971.issue38417@roundup.psfhosted.org>
2019-10-08 23:00:46vstinnerlinkissue38417 messages
2019-10-08 23:00:45vstinnercreate