2014-02-17 15:57:16 +00:00
|
|
|
# prctl
|
|
|
|
|
2022-08-09 18:46:30 +01:00
|
|
|
> Get or set the resource controls of running processes, tasks, and projects.
|
2021-03-31 12:09:14 +01:00
|
|
|
> More information: <https://www.unix.com/man-page/sunos/1/prctl>.
|
2014-02-17 15:57:16 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Examine process limits and permissions:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
2022-11-01 10:27:06 +00:00
|
|
|
`prctl {{pid}}`
|
2014-02-17 15:57:16 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Examine process limits and permissions in machine parsable format:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
2022-11-01 10:27:06 +00:00
|
|
|
`prctl -P {{pid}}`
|
2014-02-17 15:57:16 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Get specific limit for a running process:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
2022-11-01 10:27:06 +00:00
|
|
|
`prctl -n process.max-file-descriptor {{pid}}`
|