[前][次][番号順一覧][スレッド一覧]

ruby-changes:73663

From: David <ko1@a...>
Date: Wed, 21 Sep 2022 18:08:27 +0900 (JST)
Subject: [ruby-changes:73663] 796069b288 (master): getrlimit adding RLIMIT_NPTS constant.

https://git.ruby-lang.org/ruby.git/commit/?id=796069b288

From 796069b2882d8a67ecc36bda7c72affcbad09dae Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen@g...>
Date: Sat, 10 Apr 2021 12:47:16 +0100
Subject: getrlimit adding RLIMIT_NPTS constant.

---
 process.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/process.c b/process.c
index cb0a0bc542..dcab3d4da7 100644
--- a/process.c
+++ b/process.c
@@ -8975,6 +8975,14 @@ InitVM_process(void) https://github.com/ruby/ruby/blob/trunk/process.c#L8975
      */
     rb_define_const(rb_mProcess, "RLIMIT_NPROC", INT2FIX(RLIMIT_NPROC));
 #endif
+#ifdef RLIMIT_NPTS
+    /* The maximum number of pseudo-terminals that can be created for the
+     * real user ID of the calling process.
+     *
+     * see the system getrlimit(2) manual for details.
+     */
+    rb_define_const(rb_mProcess, "RLIMIT_NPTS", INT2FIX(RLIMIT_NPTS));
+#endif
 #ifdef RLIMIT_RSS
     /* Specifies the limit (in pages) of the process's resident set.
      *
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]