Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | MJIT: Do not hang after forking with threads | Takashi Kokubun | 2022-09-11 | 1 | -0/+1 |
| | | | | | | | | | | | First, rb_mjit_fork should call rb_thread_atfork to stop threads after fork in the child process. Unfortunately, we cannot use rb_fork_ruby to prevent this kind of mistakes because MJIT needs special handling of waiting_pid and mjit_pause/resume. Second, mjit_waitpid_finished should be checked regardless of trap_interrupt. It doesn't seem like the flag is not set when SIGCHLD is handled for an MJIT child process. | ||||
* | Call appropriate hooks on MJIT's fork | Takashi Kokubun | 2022-09-04 | 1 | -0/+23 |
| | | | | This takes care of signal_self_pipe and other things. | ||||
* | Short-circuit `Process._fork` | Nobuyoshi Nakada | 2022-08-12 | 1 | -9/+22 |
| | |||||
* | Stop using casted `rb_syswait` as `proc_syswait` | Nobuyoshi Nakada | 2022-08-07 | 1 | -5/+1 |
| | | | | | | The argument of `rb_syswait` is now `rb_pid_t` which may differ from `int`. Also it is an undefined behavior to take the result of casted void function (in `rb_protect`). | ||||
* | Fix the sizes comparison | Nobuyoshi Nakada | 2022-08-06 | 1 | -1/+1 |
| | | | | `proc_syswait` will be called with a `VALUE` argument. | ||||
* | [DOC] Process._fork does not get called by Process.daemon | Ivo Anjo | 2022-08-05 | 1 | -0/+7 |
| | | | | | | | | | As discussed in [Bug #18911], I'm adding some documentation to `Process._fork` to clarify that it is not expected to cover calls to `Process.daemon`. [Bug #18911]: https://bugs.ruby-lang.org/issues/18911 Co-authored-by: Yusuke Endoh <mame@ruby-lang.org> | ||||
* | Expand tabs [ci skip] | Takashi Kokubun | 2022-07-21 | 1 | -739/+739 |
| | | | | [Misc #18891] | ||||
* | [DOC] Document `Process::Tms` | Nobuyoshi Nakada | 2022-06-28 | 1 | -1/+16 |
| | |||||
* | Allow to just warn as bool expected, without an exception | Nobuyoshi Nakada | 2022-06-20 | 1 | -1/+1 |
| | |||||
* | Remove MJIT worker thread (#6006) | Takashi Kokubun | 2022-06-15 | 1 | -62/+22 |
| | | | [Misc #18830] | ||||
* | [ci skip] Fix docs | Peter Zhu | 2022-04-13 | 1 | -1/+1 |
| | |||||
* | Fix some RDoc links (#5778) | Burdette Lamar | 2022-04-08 | 1 | -1/+1 |
| | |||||
* | Prefix ccan headers (#4568) | Nobuyoshi Nakada | 2022-03-30 | 1 | -19/+19 |
| | | | | | | | | | | | | | * Prefixed ccan headers * Remove unprefixed names in ccan/build_assert * Remove unprefixed names in ccan/check_type * Remove unprefixed names in ccan/container_of * Remove unprefixed names in ccan/list Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz> | ||||
* | [DOC] Fix documentation typo for Process#clock_gettime | Thierry Joyal | 2022-03-07 | 1 | -1/+1 |
| | | | | Fixes [Misc #18610] | ||||
* | Use symbols for clock IDs if `clockid_t` is not numeric | Nobuyoshi Nakada | 2022-02-19 | 1 | -19/+134 |
| | |||||
* | Set static IDs to same name variables | Nobuyoshi Nakada | 2022-02-19 | 1 | -30/+31 |
| | |||||
* | Enhanced RDoc concerning command injection (#5537) | Burdette Lamar | 2022-02-18 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | Clarifies security vulnerabilities for commands. Treats: Kernel.system Kernel.` (backtick) IO.popen IO.read IO.write IO.binread IO.binwrite IO.readlines IO.foreach | ||||
* | Accurately report VM memsize | Kevin Newton | 2022-01-21 | 1 | -0/+15 |
| | | | | | | Currently the calculation only counts the size of the struct. This commit adds the size of the associated st tables, id tables, and linked lists. Still missing is the size of the ractors and (potentially) the size of the object space. | ||||
* | [DOC] Enhanced Process.groups related | Nobuyoshi Nakada | 2022-01-19 | 1 | -6/+7 |
| | | | | | | * On some platforms (e.g., macOS), the user's default group access list may exceed `NGROUPS_MAX`. * Use upcase "GID" instead of "gid" for other than variable names. | ||||
* | [Feature #18491] Drop support for HP-UX | Peter Zhu | 2022-01-18 | 1 | -1/+0 |
| | | | | | IA64 support was dropped in ticket #15894, so we can drop support for HP-UX. | ||||
* | Replace to RBOOL macro | S-H-GAMELINKS | 2022-01-17 | 1 | -6/+1 |
| | |||||
* | [DOC] Fix docs rendering for Process._fork [ci skip] | Matheus Richard | 2021-12-15 | 1 | -2/+2 |
| | | | Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> | ||||
* | Some codes replace to `RBOOL` macro (#5023) | S.H | 2021-11-09 | 1 | -16/+4 |
| | | | | | | | * Some code replace and using RBOOL macro * Fix indent * Using RBOOL in syserr_eqq function | ||||
* | process.c: Add Process._fork (#5017) | Yusuke Endoh | 2021-10-25 | 1 | -9/+39 |
| | | | | | | | | | | * process.c: Add Process._fork This API is supposed for application monitoring libraries to hook fork event. [Feature #17795] Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> | ||||
* | Fill pid and error in the status | Nobuyoshi Nakada | 2021-10-19 | 1 | -2/+7 |
| | |||||
* | Rework order of operations to better handle last_status. | Samuel Williams | 2021-09-22 | 1 | -9/+6 |
| | |||||
* | Add support for non-blocking `Kernel.system`. | Samuel Williams | 2021-09-22 | 1 | -64/+109 |
| | |||||
* | Handle overwriting Object::ENV in spawn | Jeremy Evans | 2021-09-14 | 1 | -5/+6 |
| | | | | | | | | | Instead of looking for Object::ENV (which can be overwritten), directly look for the envtbl variable. As that is static in hash.c, and the lookup code is in process.c, add a couple non-static functions that will return envtbl (or envtbl#to_hash). Fixes [Bug #18164] | ||||
* | Replace RBOOL macro | S-H-GAMELINKS | 2021-09-05 | 1 | -1/+1 |
| | |||||
* | Add Windows as a supported OS for Process.clock_gettime [ci skip] | Lars Kanis | 2021-08-28 | 1 | -2/+2 |
| | |||||
* | `popen()` is not available on emscripten | Nobuyoshi Nakada | 2021-08-16 | 1 | -1/+1 |
| | |||||
* | Suppress unused-variable warnings | Nobuyoshi Nakada | 2021-08-16 | 1 | -2/+2 |
| | |||||
* | [DOC] mention how the command is passed to the shell [ci skip] | Nobuyoshi Nakada | 2021-08-03 | 1 | -1/+2 |
| | |||||
* | [DOC] Fix Process::exec documentation [ci skip] | Nobuyoshi Nakada | 2021-07-31 | 1 | -1/+1 |
| | | | | | | Shell reserved words and special built-in commands can be placed at only the beginning of the command (except for leading white spaces). | ||||
* | [DOC] Fix Process::exec documentation [ci skip] | Nobuyoshi Nakada | 2021-07-30 | 1 | -2/+2 |
| | | | | | The environment variable `RUBYSHELL` is used only on Windows, as well as `COMSPEC`. | ||||
* | Remove unneeded function declarations | S.H | 2021-07-22 | 1 | -4/+0 |
| | |||||
* | process.c: Call rb_thread_atfork in rb_fork_ruby | Yusuke Endoh | 2021-07-15 | 1 | -3/+4 |
| | | | | | | | | All occurrences of rb_fork_ruby are followed by a call rb_thread_fork in the created child process. This is refactoring and a potential preparation for [Feature #17795]. (rb_fork_ruby may be wrapped by Process._fork_.) | ||||
* | Replace copy coroutine with pthread implementation. | Samuel Williams | 2021-07-01 | 1 | -14/+10 |
| | |||||
* | Expose scheduler as public interface & bug fixes. (#3945) | Samuel Williams | 2021-02-09 | 1 | -7/+6 |
| | | | | | | | | | * Rename `rb_scheduler` to `rb_fiber_scheduler`. * Use public interface if available. * Use `rb_check_funcall` where possible. * Don't use `unblock` unless the fiber was non-blocking. | ||||
* | Updated access to Process::Status attributes | Nobuyoshi Nakada | 2020-12-24 | 1 | -14/+25 |
| | | | | | pst_pid() no longer returns Qnil even if the receiver is not initialized. | ||||
* | Store errno in struct rb_process_status | Nobuyoshi Nakada | 2020-12-24 | 1 | -16/+21 |
| | | | | | To propagate errno in the fiber thread scheduler hook. Returns nil when no terminated process. | ||||
* | Struct::Tms: delete | 卜部昌平 | 2020-12-22 | 1 | -3/+0 |
| | | | | Has been deprecated since 44c53ee473d3b3973cb5c3ce03fbf4f280fd75ff. | ||||
* | Fixed indefinite articles before "Integer" [ci skip] | Nobuyoshi Nakada | 2020-12-21 | 1 | -1/+1 |
| | |||||
* | Remove unused variable | Radosław Bułat | 2020-12-19 | 1 | -2/+1 |
| | |||||
* | Revert "Better cooperation between public/protected/private with attr* and ↵ | Yusuke Endoh | 2020-12-18 | 1 | -1/+2 |
| | | | | | | alias_method" This reverts commit 81739ad4fdfcc86a769056fec352f27c686fba1b. | ||||
* | Better cooperation between public/protected/private with attr* and alias_method | Radosław Bułat | 2020-12-17 | 1 | -2/+1 |
| | |||||
* | Fixed marshal compatibility of Process::Status | Nobuyoshi Nakada | 2020-12-16 | 1 | -0/+25 |
| | |||||
* | [DOC] Process::Status.wait return nil if no child processes [ci skip] | Nobuyoshi Nakada | 2020-12-12 | 1 | -3/+3 |
| | |||||
* | RDoc states that Process::Status.wait returns nil if cannot wait | Nobuyoshi Nakada | 2020-12-11 | 1 | -25/+16 |
| | |||||
* | [DOC] Fixed the RDoc location of Process::Status.wait [ci skip] | Nobuyoshi Nakada | 2020-12-11 | 1 | -36/+37 |
| |