[Python-ideas] Expose Linux-specific APIs in resource module

Giampaolo Rodolà g.rodola at gmail.com
Mon Jun 4 01:09:31 CEST 2012


>From "man getrlimit" we have 5 linux-specific constants which are
currently not exposed by resource module:
RLIMIT_MSGQUEUE
RLIMIT_NICE
RLIMIT_RTPRIO
RLIMIT_RTTIME
RLIMIT_SIGPENDING
Also, we have prlimit(), which is useful to get/set resources in a
per-process fashion based on process PID.
If desirable I can submit a patch for this.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
http://code.google.com/p/pysendfile/


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /