Takashi Kokubun 967ae6278f
Run rb_syswait on exec failure
not only when !w but also when w == WAITPID_LOCK_ONLY.
See also: f7c0cc36920a4ed14a3ab1ca6cfdf18ceff1e5d5 and a2264342063260d660b99872eaf5080f6ab08e81.
We thought this change was an oversight in the latter commit.

Without this change, the test fails like:

$ make test-all TESTS="../test/ruby/test_process.rb -n test_exec_failure_leaves_no_child" RUN_OPTS="--jit"
...
  1) Failure:
TestProcess#test_exec_failure_leaves_no_child [/home/k0kubun/src/github.com/ruby/ruby/test/ruby/test_process.rb:2493]:
Expected [[26799, #<Process::Status: pid 26799 exit 127>]] to be empty.

Co-Authored-By: Yusuke Endoh <mame@ruby-lang.org>
2020-05-10 00:59:55 -07:00
..
2020-03-02 13:14:38 +09:00
2020-02-26 10:16:32 +09:00
2020-04-01 12:48:56 +09:00
2020-05-09 14:22:04 +09:00
2020-02-25 17:47:17 +09:00
2020-04-28 23:36:16 +09:00
2020-05-10 00:59:55 -07:00
2020-05-10 00:59:55 -07:00
2020-05-06 12:45:01 +09:00
2020-03-05 16:49:27 -06:00
2020-03-06 20:54:33 +09:00