diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2023-08-29 22:24:55 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 22:24:55 +1200 |
commit | e46e48d690cf543193418ef08725cdbe31688975 (patch) | |
tree | 72ed0617581e4b51c47894632b6797054d28c2aa /include | |
parent | 0744da1b3bdaad43bf98f2d8b2425841f787b2dc (diff) | |
download | ruby-e46e48d690cf543193418ef08725cdbe31688975.tar.gz |
Expose `rb_process_status_wait` and hide `rb_process_status_waitv`. (#8316)
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/internal/intern/process.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ruby/internal/intern/process.h b/include/ruby/internal/intern/process.h index 7a7b24ed4b..5dcf85e80c 100644 --- a/include/ruby/internal/intern/process.h +++ b/include/ruby/internal/intern/process.h @@ -31,6 +31,15 @@ RBIMPL_SYMBOL_EXPORT_BEGIN() /* process.c */ /** + * Wait for the specified process to terminate, reap it, and return its status. + * + * @param[in] pid The process ID to wait for. + * @param[in] flags The flags to pass to waitpid(2). + * @return VALUE An instance of Process::Status. + */ +VALUE rb_process_status_wait(rb_pid_t pid, int flags); + +/** * Sets the "last status", or the `$?`. * * @param[in] status The termination status, as defined in `waitpid(3posix)`. |