1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/rubyspec/core
normal 2e87ef8b66 rubyspec/core/io/popen_spec: avoid lingering "ruby -e sleep" process
The ruby_cmd helper blindly escapes code blocks passed to it,
causing "sleep" to be quoted in the command-line.  This quoting
results in IO.popen using a subshell (/bin/sh) to run the given
string command instead of invoking the Ruby executable directly.

Thus, IO.popen would only see the PID of the subshell via
IO#pid, and merely sending SIGKILL to the subshell would not
result in the child ("ruby -e sleep") being killed.

This problem with lingering ruby processes was easier to
reproduce on slow or heavily-loaded systems using low-scheduling
priority (e.g. "chrt -i 0 make test-rubyspec")

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-24 00:34:12 +00:00
..
argf
array
basicobject
bignum Update to ruby/spec@032022ca 2017-05-14 14:09:56 +00:00
binding Update to ruby/spec@032022ca 2017-05-14 14:09:56 +00:00
builtin_constants
class
comparable
complex
dir source directory may not be writable 2017-05-22 14:25:56 +00:00
encoding
enumerable
enumerator
env
exception
false
fiber Update to ruby/spec@032022ca 2017-05-14 14:09:56 +00:00
file Update to ruby/spec@032022ca 2017-05-14 14:09:56 +00:00
filetest
fixnum Update to ruby/spec@032022ca 2017-05-14 14:09:56 +00:00
float
gc
hash
integer
io rubyspec/core/io/popen_spec: avoid lingering "ruby -e sleep" process 2017-05-24 00:34:12 +00:00
kernel source directory may not be writable 2017-05-22 14:25:56 +00:00
main
marshal
matchdata
math
method
module
mutex
nil
numeric
objectspace
proc
process Update to ruby/spec@032022ca 2017-05-14 14:09:56 +00:00
random
range
rational
regexp
signal
string String#casecmp no longer raises TypeError 2017-05-21 19:31:37 +00:00
struct
symbol
systemexit
thread
threadgroup
time Update to ruby/spec@032022ca 2017-05-14 14:09:56 +00:00
true
unboundmethod