How can a process find out its resource limits -- particularly rtprio

Tollef Fog Heen tfheen at err.no
Tue Feb 13 11:05:04 UTC 2007


* 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      : :' :
                                                                      `. `' 
                                                                        `-  




More information about the Pam-list mailing list