[Python-ideas] Expose Linux-specific APIs in resource module (original) (raw)
Giampaolo RodolĂ g.rodola at gmail.com
Mon Jun 4 01:09:31 CEST 2012
- Previous message: [Python-ideas] Adding list.pluck()
- Next message: [Python-ideas] shutil.run (Was: shutil.runret and shutil.runout)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message: [Python-ideas] Adding list.pluck()
- Next message: [Python-ideas] shutil.run (Was: shutil.runret and shutil.runout)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]