[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How can a process find out its resource limits -- particularly rtprio
- From: Tollef Fog Heen <tfheen err no>
- To: Pluggable Authentication Modules <pam-list redhat com>
- Subject: Re: How can a process find out its resource limits -- particularly rtprio
- Date: Tue, 13 Feb 2007 12:05:04 +0100
* Jonathan Ryshpan
| What method can be used to discover the max priority currently available
| to the current process, as controlled by /etc/security/limits.conf (or
| whatever controls it at the time of the inquiry)? More generally, how
| can a process discover what values are set in /etc/security/limits.conf?
Use getrlimit(2). That gives you the current limits, not necessarily
the ones specified in /etc/security/limits.conf, though.
--
Tollef Fog Heen ,''`.
UNIX is user friendly, it's just picky about who its friends are : :' :
`. `'
`-
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]