From ae609a995e344877a990f4c16eca88b02dab5eba Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 22 Jun 2023 16:23:44 -0700 Subject: [PATCH] Document that Kernel#p is for debugging and may be uninterruptible [ci skip] Fixes [Bug #18810] --- io.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/io.c b/io.c index bd1db9aa5d..433ec75b27 100644 --- a/io.c +++ b/io.c @@ -8944,6 +8944,10 @@ rb_p_result(int argc, const VALUE *argv) * 0..4 * [0..4, 0..4, 0..4] * + * Kernel#p is designed for debugging purposes. + * Ruby implementations may define Kernel#p to be uninterruptible + * in whole or in part. + * On CRuby, Kernel#p's writing of data is uninterruptible. */ static VALUE