diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-09-22 09:39:20 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-09-22 11:35:28 +0900 |
commit | 6b0b326ef26478e96d176ed2013530e368e32440 (patch) | |
tree | 6b8ba2143b76d6d20e7ed9d3dd2c39b8f9d8ae61 /process.c | |
parent | 56d773dc6f8a1a9ded3f20cdabf263800e5bf75d (diff) |
Followed up 796069b2882d8a67ecc36bda7c72affcbad09dae
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6415
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -5548,6 +5548,9 @@ rlimit_resource_name2int(const char *name, long len, int casetype) #ifdef RLIMIT_NPROC RESCHECK(NPROC); #endif +#ifdef RLIMIT_NPTS + RESCHECK(NPTS); +#endif #ifdef RLIMIT_NICE RESCHECK(NICE); #endif @@ -5776,6 +5779,7 @@ proc_getrlimit(VALUE obj, VALUE resource) * [NICE] ceiling on process's nice(2) value (number) (GNU/Linux) * [NOFILE] file descriptors (number) (SUSv3) * [NPROC] number of processes for the user (number) (4.4BSD, GNU/Linux) + * [NPTS] number of pseudo terminals (number) (FreeBSD) * [RSS] resident memory size (bytes) (4.2BSD, GNU/Linux) * [RTPRIO] ceiling on the process's real-time priority (number) (GNU/Linux) * [RTTIME] CPU time for real-time process (us) (GNU/Linux) |