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

1 view
Skip to first unread message

Giampaolo Rodolà

unread,
Jun 3, 2012, 7:09:31 PM6/3/12
to python...@python.org
>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/
_______________________________________________
Python-ideas mailing list
Python...@python.org
http://mail.python.org/mailman/listinfo/python-ideas
Reply all
Reply to author
Forward
0 new messages