ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:101250] [Ruby master Bug#17369] Introduce non-blocking `Process.wait`, `Kernel.system` and related methods.
@ 2020-12-05 12:10 samuel
  2020-12-05 12:53 ` [ruby-core:101252] " eregontp
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: samuel @ 2020-12-05 12:10 UTC (permalink / raw)
  To: ruby-core

Issue #17369 has been reported by ioquatix (Samuel Williams).

----------------------------------------
Bug #17369: Introduce non-blocking `Process.wait`, `Kernel.system` and related methods.
https://bugs.ruby-lang.org/issues/17369

* Author: ioquatix (Samuel Williams)
* Status: Assigned
* Priority: Normal
* Assignee: ioquatix (Samuel Williams)
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
https://github.com/ruby/ruby/pull/3852

This PR introduces optional hooks to the scheduler interface for handling `Process.wait`, `Kernel.system` and other related methods (`waitpid`, `wait2`, etc).

It funnels all methods through a new interface `Process::Status.wait` which is almost identical to `Process.wait` except for several key differences:

- The return value is a single instance of `Process::Status`.
- It does not set thread local `$?`.

This is necessary for keeping the scheduler interface simple (and side effects are generally bad anyway).



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-10-21  7:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-05 12:10 [ruby-core:101250] [Ruby master Bug#17369] Introduce non-blocking `Process.wait`, `Kernel.system` and related methods samuel
2020-12-05 12:53 ` [ruby-core:101252] " eregontp
2020-12-05 12:57 ` [ruby-core:101253] " samuel
2020-12-05 13:22 ` [ruby-core:101254] " eregontp
2020-12-08 20:19 ` [ruby-core:101321] " samuel
2020-12-09  8:40 ` [ruby-core:101335] " naruse
2020-12-10  6:08 ` [ruby-core:101359] " matz
2020-12-26  7:40 ` [ruby-core:101703] " samuel
2021-06-22 11:46 ` [ruby-core:104379] [Ruby master Feature#17369] " samuel
2021-09-27  4:01 ` [ruby-core:105435] " ioquatix (Samuel Williams)
2021-10-11 17:48 ` [ruby-core:105617] " Eregon (Benoit Daloze)
2021-10-21  7:49 ` [ruby-core:105717] " nobu (Nobuyoshi Nakada)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).