diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-10-22 18:23:04 +0000 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-10-22 18:23:04 +0000 |
commit | 4d952ebcd4415f9f2b2c805875cc4c132593c997 (patch) | |
tree | 62d56fd4be6bfbad51a6330e0a9472fc331a7ca1 /scripts/procinfo.py | |
parent | 1552ccd14baf586e8e0e3a3a6fa37b07d65838bb (diff) | |
download | psutil-freebsd-rlimit.tar.gz |
update docfreebsd-rlimit
Diffstat (limited to 'scripts/procinfo.py')
-rwxr-xr-x | scripts/procinfo.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/procinfo.py b/scripts/procinfo.py index f0605386..8eea3377 100755 --- a/scripts/procinfo.py +++ b/scripts/procinfo.py @@ -108,11 +108,14 @@ RLIMITS_MAP = { "RLIMIT_NICE": "nice", "RLIMIT_NOFILE": "openfiles", "RLIMIT_NPROC": "maxprocesses", + "RLIMIT_NPTS": "pseudoterms", "RLIMIT_RSS": "rss", "RLIMIT_RTPRIO": "realtimeprio", "RLIMIT_RTTIME": "rtimesched", + "RLIMIT_SBSIZE": "sockbufsize", "RLIMIT_SIGPENDING": "sigspending", "RLIMIT_STACK": "stack", + "RLIMIT_SWAP": "swapuse", } @@ -317,7 +320,7 @@ def run(pid, verbose=False): def main(argv=None): parser = argparse.ArgumentParser( description="print information about a process") - parser.add_argument("pid", type=int, help="process pid") + parser.add_argument("pid", type=int, help="process pid", nargs='?') parser.add_argument('--verbose', '-v', action='store_true', help="print more info") args = parser.parse_args() |