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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Pam-list mailing list
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux