diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-12-08 09:29:09 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-12-09 08:55:35 +1300 |
commit | 2553c5f94a5d51c2c5876b31e4c1521ad9be12f6 (patch) | |
tree | fc7b8fe6e578424b15dea0f8b94caa7a72b5c0a1 /include | |
parent | a4a92ae6d99a75e11165ca09c44ccf47cf342047 (diff) |
Add support for non-blocking `Process.wait`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3853
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/internal/intern/process.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ruby/internal/intern/process.h b/include/ruby/internal/intern/process.h index 2b1005a205..bcb5a7e364 100644 --- a/include/ruby/internal/intern/process.h +++ b/include/ruby/internal/intern/process.h @@ -28,7 +28,9 @@ RBIMPL_SYMBOL_EXPORT_BEGIN() /* process.c */ -void rb_last_status_set(int status, rb_pid_t pid); +RUBY_EXTERN void (* rb_socket_before_fork_func)(); + +void rb_last_status_set(rb_pid_t pid, int status, int error); VALUE rb_last_status_get(void); int rb_proc_exec(const char*); |