aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* test/ruby/test_io.rb: use IO#nonblock=normal2014-09-052-1/+6
| | | | | | | * test/ruby/test_io.rb (test_readpartial_locktmp): use IO#nonblock= Old fcntl invocation may drop necessary flags on some platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_io.rb: avoid EBADFnormal2014-09-052-14/+24
| | | | | | | * test/ruby/test_io.rb (test_readpartial_locktmp): avoid EBADF [ruby-core:64773] [ruby-core:64775] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_exec): Call before_exec_async_signal_safe andakr2014-09-052-13/+31
| | | | | | | | | | | | | after_exec_async_signal_safe around rb_exec_async_signal_safe. (rb_exec_async_signal_safe): Don't call before_exec_async_signal_safe and after_exec_async_signal_safe. (rb_exec_without_timer_thread): Call before_exec and after_exec. (disable_child_handler_fork_child): Make SIGPIPE handler SIG_DFL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Unwrap a useless block.akr2014-09-051-8/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (ruby_signal): Don't set SA_SIGINFO for SIG_IGN andakr2014-09-052-2/+13
| | | | | | | | SIG_DFL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-09-06svn2014-09-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix typo and method name [ci skip]kazu2014-09-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (disable_child_handler_before_fork): New function.akr2014-09-052-2/+87
| | | | | | | | | | (disable_child_handler_fork_parent): Ditto. (disable_child_handler_fork_child): Ditto. (retry_fork_async_signal_safe): Call above functions to disable signal handlers in child process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (handle_fork_error): Make try_gc_p argument volatile toakr2014-09-052-2/+7
| | | | | | | | suppress "clobbered" warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (handle_fork_error): Don't need state_p argument.akr2014-09-052-9/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (has_privilege): Fix a return value.akr2014-09-052-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/shellwords.rb: proofreading documentation.hsbt2014-09-052-9/+14
| | | | | | [Bug #10155][ruby-core:64471] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: added reference to githubhsbt2014-09-051-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/csv/test_row.rb: Added some missing tests in CSV.hsbt2014-09-053-0/+23
| | | | | | * test/csv/test_table.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (has_privilege): Refine uid/gid check.akr2014-09-052-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Check sys/id.h, getuidx and getgidx for AIX.akr2014-09-053-1/+51
| | | | | | | | | | * process.c (getresuid): Defined for AIX. (getresgid): Ditto AIX don't have getresuid/getresgid but getuidx/getgidx. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (has_privilege): Fix assignements.akr2014-09-052-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/generator/pot/po.rb: fixed broken tests for trailing whitespace.hsbt2014-09-054-7/+10
| | | | | | | * test/rdoc/test_rdoc_generator_pot.rb: ditto. * test/rdoc/test_rdoc_generator_pot_po.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.svn2014-09-050-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.svn2014-09-054-8/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rdoc/test_rdoc_rdoc.rb (TestRDocRDoc#test_parse_file_encoding):hsbt2014-09-052-1/+6
| | | | | | typofix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc.rb, lib/rdoc, test/rdoc: Update to RDoc 4.2.0.alpha(313287)hsbt2014-09-0556-223/+1597
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm.c: remove unused USE_THREAD_RECYCLE [misc #10198]normal2014-09-042-15/+5
| | | | | | Unused feature, and it is a no-op even if enabled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Describe about vfork().akr2014-09-041-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-09-05svn2014-09-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (dirfd): Check function.akr2014-09-049-130/+54
| | | | | | | | | * dir.c (dir_fileno): New method. [ruby-dev:48265] [Feature #9880] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (has_privilege): New function.akr2014-09-043-1/+81
| | | | | | | | | | | | (retry_fork_async_signal_safe): Don't use vfork() for privileged process. * configure.in (getresuid): Check function. (getresgid): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/pathname/test_pathname.rb: added testcase for Pathname#mountpoint.hsbt2014-09-042-0/+10
| | | | | | [fix GH-709] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * removed symbian directory.hsbt2014-09-040-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * symbian/*: removed Symbian support.hsbt2014-09-0411-837/+10
| | | | | | | | | | [Feature #10199][ruby-core:64725] * dln.c: ditto. * include/ruby/defines.h: ditto. * thread_pthread.c: ditto. * vm.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (glob_helper): use #ifdef instead of #if.ko12014-09-045-4/+19
| | | | | | | | | | | gcc's -Wundef option shows warning for undefined macro. * numeric.c (flo_is_finite_p): ditto. * vm_dump.c (rb_vmdebug_thread_dump_state): ditto. * vm_core.h: define VM_DEBUG_VERIFY_METHOD_CACHE to 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-09-04svn2014-09-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* man/ruby.1: spelling fix ("bellow" => "below") [ci-skip]normal2014-09-032-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* man/ruby.1: add trailing slash to URLs [ci-skip]normal2014-09-032-3/+7
| | | | | | URLs without path component needs trailing slash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (before_fork_ruby): Renamed from before_fork.akr2014-09-032-7/+12
| | | | | | | | | (after_fork_ruby): Renamed from after_fork. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (forked_child): Removed.akr2014-09-032-20/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* object.c: fix memory leaknobu2014-09-033-2/+20
| | | | | | | * object.c (rb_obj_copy_ivar): allocate no memory for empty instance variables. [ruby-core:64700] [Bug #10191] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot (usage): X.Y means the head of a branch now.nobu2014-09-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot (package): no teeny means a branch since 2.1.nobu2014-09-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (retry_fork_async_signal_safe): Use vfork() if available.akr2014-09-032-0/+19
| | | | | | | | | | | | | | vfork() is still faster than fork() especially when the parent process uses big memory. ruby -rbenchmark -e 'a = "a" * 1_000_000_000; puts Benchmark.measure { system("true") }' fork: 0.000000 0.010000 0.010000 ( 0.014968) vfork: 0.000000 0.000000 0.000000 ( 0.000912) on Debian sid. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_pkey_rsa.rb (OpenSSL#test_sign_verify_memory_leak):hsbt2014-09-032-2/+8
| | | | | | | added timeout into testcase for low performance environment. [Bug #9984][ruby-core:63367] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Use AC_FUNC_FORK.akr2014-09-024-36/+45
| | | | | | | | | | * io.c: Use HAVE_WORKING_FORK instead of HAVE_FORK. * process.c: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Ruby can delay arbitrarily because Ruby is not a realtime system, akr2014-09-021-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-09-03svn2014-09-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (retry_fork_async_signal_safe): Don't return on in childakr2014-09-022-17/+22
| | | | | | | | process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (retry_fork_async_signal_safe): Specialized version ofakr2014-09-022-27/+52
| | | | | | | | | | | retry_fork respect to rb_fork_async_signal_safe. (retry_fork_ruby): Specialized version of retry_fork respect to rb_fork_ruby. (rb_fork_ruby): Removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (send_child_error): Simplified.akr2014-09-022-34/+13
| | | | | | | | (recv_child_error): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_fork_async_signal_safe): Inline rb_fork_internal.akr2014-09-022-74/+49
| | | | | | | | | | (rb_fork_ruby): Ditto. (rb_fork_internal): Removed. (chfunc_protect): Removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_new_with_block): Set autoclose to avoid EBADF.akr2014-09-022-2/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: ignore stream closed IOErrornobu2014-09-021-3/+7
| | | | | | | * test/ruby/test_io.rb (test_readpartial_locktmp): stream closed IOError while reading is not a matter. [Bug #10193] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e