summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorVictor Shepelev <zverok.offline@gmail.com>2023-12-14 23:01:48 +0200
committerGitHub <noreply@github.com>2023-12-14 23:01:48 +0200
commit570d7b2c3e2ee39e07548dfe242b684ec794789d (patch)
treeee123eb1d1a8680ee9fd5f7c7a873a120acd833d /process.c
parentd3deb1b8232a303dd40909e32f939bad3b24a8af (diff)
[DOC] Adjust some new features wording/examples. (#9183)
* Reword Range#overlap? docs last paragraph. * Docs: add explanation about Queue#freeze * Docs: Add :rescue event docs for TracePoint * Docs: Enhance Module#set_temporary_name documentation * Docs: Slightly expand Process::Status deprecations * Fix MatchData#named_captures rendering glitch * Improve Dir.fchdir examples * Adjust Refinement#target docs
Diffstat (limited to 'process.c')
-rw-r--r--process.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/process.c b/process.c
index 4dc2325f80..395c69e08f 100644
--- a/process.c
+++ b/process.c
@@ -576,7 +576,6 @@ proc_get_ppid(VALUE _)
* stat = $? # => #<Process::Status: pid 1262862 exit 99>
* stat.class # => Process::Status
* stat.to_i # => 25344
- * stat >> 8 # => 99
* stat.stopped? # => false
* stat.exited? # => true
* stat.exitstatus # => 99
@@ -878,7 +877,9 @@ pst_equal(VALUE st1, VALUE st2)
* call-seq:
* stat & mask -> integer
*
- * This method is deprecated; use other attribute methods.
+ * This method is deprecated as #to_i value is system-specific; use
+ * predicate methods like #exited? or #stopped?, or getters like #exitstatus
+ * or #stopsig.
*
* Returns the logical AND of the value of #to_i with +mask+:
*
@@ -930,7 +931,9 @@ pst_bitand(VALUE st1, VALUE st2)
* call-seq:
* stat >> places -> integer
*
- * This method is deprecated; use other predicate methods.
+ * This method is deprecated as #to_i value is system-specific; use
+ * predicate methods like #exited? or #stopped?, or getters like #exitstatus
+ * or #stopsig.
*
* Returns the value of #to_i, shifted +places+ to the right:
*