From 6b0b326ef26478e96d176ed2013530e368e32440 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 22 Sep 2022 09:39:20 +0900 Subject: [PATCH] Followed up 796069b2882d8a67ecc36bda7c72affcbad09dae --- process.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/process.c b/process.c index dcab3d4da7..d95b717960 100644 --- a/process.c +++ b/process.c @@ -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)