Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose rb_process_status_wait and hide rb_process_status_waitv. #8316

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions include/ruby/internal/intern/process.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,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 `$?`.
*
Expand Down
2 changes: 1 addition & 1 deletion process.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ rb_process_status_wait(rb_pid_t pid, int flags)
* This is an EXPERIMENTAL FEATURE.
*/

VALUE
static VALUE
rb_process_status_waitv(int argc, VALUE *argv, VALUE _)
{
rb_check_arity(argc, 0, 2);
Expand Down