summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * thread.c, thread_pthread.c, thread_win32.c: merges nobu's commits -yugui2008-11-304-27/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r20117, r20123, r20124, r20127, r20132-r20134, r20138, r20140, r20141 and r20160 - from trunk into ruby_1_9_1. * thread_pthread.c (thread_timer): checks working flags again. * thread_pthread.c (rb_thread_create_timer_thread): do not wait never coming signal if failed to create tiemr thread. * thread_pthread.c (native_cond_timedwait): returns error code. * thread_pthread.c (thread_timer, rb_thread_create_timer_thread): handshakes properly. * thread_pthread.c (thread_timer): initializes mutex each time. * thread_win32.c (thread_start_func_1): use already gotten stack info. * thread.c (thread_timer): pthread_cond_timedwait returns ETIMEDOUT when timed out. * thread_pthread.c (thread_timer): uses pthread_cond_timedwait always instead of pthread_kill. * thread.c (thread_timer): uses timedwait on cygwin. * thread.c (rb_thread_stop_timer_thread): terminates timer thread immediately. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20346 from trunk into ruby_1_9_1.yugui2008-11-303-4/+15
| | | | | | | | | | * process.c (rb_fork): stops the timer thread during fork. [ruby-dev:37117] * thread.c (rb_thread_start_timer_thread): timer thread needs system_working to be set. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20342 from trunk to ruby_1_9_1.yugui2008-11-303-0/+30
| | | | | | | | * strftime.c (rb_strftime): The # flag should work with %a, %A, %b, %B, and %h. [ruby-dev:37162] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20341 from trunk into ruby_1_9_1.yugui2008-11-302-8/+15
| | | | | | | * signal.c (register_sigaltstack): should not add external variable (with some cosmetic changes). [ruby-dev:37158] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20340 from trunk into ruby_1_9_1.yugui2008-11-303-10/+30
| | | | | | | | * strftime.c (rb_strftime): A width specifier for %t and %n should work. [ruby-dev:37160] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20339 from trunk into ruby_1_9_1.yugui2008-11-303-3/+9
| | | | | | | * strftime.c (rb_strftime): The precision of %0N should be 9. [ruby-dev:37156] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20338 from trunk into ruby_1_9_1.yugui2008-11-303-4/+16
| | | | | | | | * strftime.c (rb_strftime): The default precision should be 1, not 0. [ruby-dev:37155] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-11-30svn2008-11-301-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20335 from trunk into ruby_1_9_1.yugui2008-11-301-0/+5
| | | | | | | * lib/time.rb: r20251 reverted. The patched behavior do not round trip. [ruby-core:19988] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-11-29svn2008-11-291-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * man/irb.1: typo fixyugui2008-11-291-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (default_handler, Init_signal): compile error ifyugui2008-11-232-0/+9
| | | | | | | USE_SIGALTSTACK is not defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c: reverts 20326. [ruby-dev:37146].yugui2008-11-232-46/+75
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-11-23svn2008-11-221-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb: reverts r20305. [ruby-dev:37144].yugui2008-11-222-28/+32
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20304 from trunk into ruby_1_9_1.yugui2008-11-222-1/+6
| | | | | | | * file.c (rb_file_world_writable_p): should return nil for non world-writable files. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20299 and r20303 from trunk into ruby_1_9_1.yugui2008-11-225-9/+19
| | | | | | | * ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb: fix NameError bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20298 from trunk into ruby_1_9_1.yugui2008-11-222-71/+56
| | | | | | | | | | | | * ext/pty/pty.c (get_device_once): abandon asynchronous exception that might cause serious problem if a program terminated early. asynchronous exception is a very bad thing anyway. use Process.waitpid(pid) or PTY.check(pid) to poll program termination. if PTY.check is called with optional second argument being true, it raises an exception same as one from previous behavior. [incompatible] fix: [ruby-core:19583] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20295 from trunk into ruby_1_9_1.yugui2008-11-222-1/+5
| | | | | | * ruby.c (usage): -W description updated. [ruby-core:19858] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X.yugui2008-11-222-0/+9
| | | | | | Uses SIGSTKSZ. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20293 from trunk into ruby_1_9_1.yugui2008-11-223-2/+43
| | | | | | | | | * signal.c (register_sigaltstack): use alternative stack for SIGSEGV to avoid uncaught stack overflow. based on a patch from Hiro Yoshioka <hyoshiok at miraclelinux.com> in [ruby-dev:37134]. [ruby-dev:36993] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20291 from trunk into ruby_1_9_1.yugui2008-11-222-1/+6
| | | | | | | * vm.c (thread_free): th->vm may be NULL when pthread_create failed for ENOMEM. [ruby-dev:37095] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20290 from trunk into ruby_1_9_1yugui2008-11-222-1/+12
| | | | | | | * lib/logger.rb (Logger): should handle the case that cvs/svn do not expand $Id keyword. [ruby-core:19991] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20288 from trunk into ruby_1_9_1.yugui2008-11-222-5/+10
| | | | | | | * lib/minitest/unit.rb (MiniTest::Assertions#capture_io): adjust indentation to shut up warning. [ruby-core:19993] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20286 from trunk into ruby_1_9_1.yugui2008-11-223-3/+43
| | | | | | | * ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a value out of range of Time. [ruby-core:19919] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_method.rb (TestMethod#test_default_accessibility):yugui2008-11-221-4/+4
| | | | | | | fixed a wrong expectation in the test case. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_method.rb (test_default_accessiblity): test case foryugui2008-11-222-0/+22
| | | | | | | | [ruby-dev:37124]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20285 from trunk into ruby_1_9_1.yugui2008-11-222-1/+6
| | | | | | | * node.h (NOEX_MODFUNC): should be include NOEX_PRIVATE. [ruby-dev:37124] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20281 from trunk into ruby_1_9_1.yugui2008-11-221-4/+4
| | | | | | * ChangeLog: fixed date format. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20280 from trunk into ruby_1_9_1.yugui2008-11-221-3/+3
| | | | | | * vm_exec.h (RUBY_VM_EXEC_H): fixed include guard. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20276 and r20278 from trunk into ruby_1_9_1.yugui2008-11-222-11/+18
| | | | | | fixed fails occasionally [ruby-dev:37119]. thanks, shinichiro.h. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20275 from trunk into ruby_1_9_1.yugui2008-11-223-3/+9
| | | | | | | * error.c (Init_syserr): moved function definition itself from template/known_errors.inc.tmpl. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/cgi/test_cgi_session.rb (setup, teardown): uses a temporaryyugui2008-11-221-9/+8
| | | | | | directory for testing session stores. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20257 from trunk into ruby_1_9_1.yugui2008-11-222-0/+6
| | | | | | fixed NoMethodError problem from NaHi [ruby-dev:37110]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20256 from trunk into ruby_1_9_1.yugui2008-11-222-1/+31
| | | | | | | * cont.c (cont_mark, cont_capture, cont_restore_1): speed up continuation by copying only valid YARV stack. [ruby-dev:37106] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-11-22svn2008-11-221-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20251 from trunk into ruby_1_9_1.yugui2008-11-222-28/+33
| | | | | | | * lib/time.rb: according to RFC2822, -0000 means local time, +0000 means UTC. a patch from Chun Wang. [ruby-core:19578] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20250 from trunk into ruby_1_9_1.yugui2008-11-182-3/+11
| | | | | | | * proc.c (proc_eq): equivalence check should not done by pointer comparison, but should be based on iseq contents. [ruby-dev:37101] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20249 from trunk into ruby_1_9_1.yugui2008-11-182-2/+8
| | | | | | | | * lib/net/ftp.rb (Net::FTP#open_socket): SOCKSsocket is obsolete. a patch from Alan Johnson <alan.wayne.johnson at gmail.com> in [ruby-core:19982]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20245 and r20246 from trunk into ruby_1_9_1.yugui2008-11-183-2/+11
| | | | | | | * lib/logger.rb (ProgName): fixed for svn, based on a patch from Nobuhiro IMAI at [ruby-dev:37108]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20244 from trunk into ruby_1_9_1.yugui2008-11-182-1/+7
| | | | | | | | * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#read_request_line): use possessive match for path retrieval to avoid huge recursion for insanely long path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20243 from trunk into ruby_1_9_1.yugui2008-11-183-2/+8
| | | | | | | | * re.c (rb_reg_desc): re might be NULL. * regerror.c (onig_error_code_to_format): message updated. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20242 from trunk into ruby_1_9_1. recovers 1.8-compatibleyugui2008-11-182-1/+11
| | | | | | | | parsing for OptionParser. * lib/optparse.rb (OptionParser::make_switch): makes default conversion to splat. [ruby-list:45645] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20241 from trunk into ruby_1_9_1.yugui2008-11-183-1/+11
| | | | | | * enc/depend (LIBS): fixed for disable-shared. [ruby-dev:37103] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20240 from trunk into ruby_1_9_1.yugui2008-11-182-15/+4
| | | | | | remove -K option from erb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20239 from trunk into ruby_1_9_1yugui2008-11-182-2/+8
| | | | | | * configure.in (LIBRUBYARG_STATIC): fixed for --enable-rpath. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20237 from trunk into ruby_1_9_1.yugui2008-11-182-1/+6
| | | | | | | * re.c (rb_reg_regsub): returns -1 unless ascii as well as rb_enc_ascget(). [ruby-dev:37097] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20236 from trunk into ruby_1_9_1.yugui2008-11-182-1/+6
| | | | | | | * configure.in (LDSHARED): do not suppress debug info if higher debug level is given, on cygwin and mingw. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20229 and r20230 from trunk into ruby_1_9_1.yugui2008-11-182-134/+26
| | | | | | | * thread.c (rb_barrier_{new,wait,release,destroy}): use Mutex so that circular requires fail with deadlock. [ruby-core:19821] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20227 from trunk into ruby_1_9_1.yugui2008-11-182-1/+5
| | | | | | ruby.c (set_internal_encoding_once): fix typo in error string git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e