summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2022-11-15 13:24:08 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-16 18:58:33 +0900
commit1f4f6c9832d83e7ebd65ccf4e95cef358b3512c6 (patch)
tree823f1ca5409fdd930b05d974cdb70953b6e7e128 /process.c
parentdc1c4e46758ace2c9e5e822df0d64b16bb564bb4 (diff)
Using UNDEF_P macro
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6721
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index d95b717960..dabe9320f2 100644
--- a/process.c
+++ b/process.c
@@ -1332,7 +1332,7 @@ rb_process_status_wait(rb_pid_t pid, int flags)
if (!(flags & WNOHANG)) {
VALUE scheduler = rb_fiber_scheduler_current();
VALUE result = rb_fiber_scheduler_process_wait(scheduler, pid, flags);
- if (result != Qundef) return result;
+ if (!UNDEF_P(result)) return result;
}
struct waitpid_state waitpid_state;