зеркало из https://github.com/github/ruby.git
Expose `rb_process_status_wait` and hide `rb_process_status_waitv`. (#8316)
This commit is contained in:
Родитель
0744da1b3b
Коммит
e46e48d690
|
@ -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 `$?`.
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче