aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * io.c (fd_set_cloexec): clear CLOEXEC flag for standard fileakr2011-10-312-40/+39
| | | | | | | | | descriptors. (rb_cloexec_dup): use rb_cloexec_fcntl_dupfd. (rb_cloexec_fcntl_dupfd): use F_DUPFD_CLOEXEC if available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/resolv/test_dns.rb: don't check maximum sleeped time.akr2011-10-312-2/+8
| | | | | | | | | ruby doesn't guarantee the maximum time because it is not a realtime application. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (setfl): extract from fcntl().usa2011-10-313-18/+98
| | | | | | | | | | | | | | | * win32/win32.c (dupfd): new function to support F_DUPFD. base on a patch written by akr. * win32/win32.c (fcntl): use above functions. * include/ruby/win32.h (F_DUPFD): define. [experimental] * include/ruby/win32.h (F_SETFL): change the value to correspond with other platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (get_device_once): use O_CLOEXEC for posix_openpt ifakr2011-10-312-1/+15
| | | | | | | available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_cloexec_dup2): check oldfd == newfd at first.akr2011-10-312-14/+26
| | | | | | | pointed by KOSAKI Motohiro. [ruby-dev:44713] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_cloexec_fcntl_dupfd): this function needs F_DUPFD.usa2011-10-312-0/+13
| | | | | | | | * io.c (nogvl_io_cntl): use rb_cloexec_fcntl_dupfd() only if the platform has F_DUPFD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: check -fno-omit-frame-pointer acceptance and usageluislavena2011-10-302-0/+11
| | | | | | under MinGW. [ruby-core:39957] [Bug #5407] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-10-31svn2011-10-301-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_cloexec_fcntl_dupfd): declared.akr2011-10-304-4/+27
| | | | | | | | | | | * io.c (rb_cloexec_fcntl_dupfd): new function. (nogvl_io_cntl): use rb_cloexec_fcntl_dupfd. * process.c (move_fds_to_avoid_crash): use rb_cloexec_fcntl_dupfd. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: check pipe2.akr2011-10-303-1/+25
| | | | | | | | * io.c (rb_cloexec_pipe): use pipe2 if available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (fill_standard_fds): use fstat() instead of fcntl(F_GETFD)akr2011-10-302-3/+9
| | | | | | | for MinGW. reported by Luis Lavena. [ruby-core:40526] [Bug #5516] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_cloexec_pipe): declared.akr2011-10-304-21/+37
| | | | | | | | | | | | * io.c (rb_cloexec_pipe): new function. (rb_pipe): use rb_cloexec_pipe. * thread_pthread.c (rb_thread_create_timer_thread): use rb_cloexec_pipe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_cloexec_dup): refine control flow.akr2011-10-302-8/+11
| | | | | | | (rb_cloexec_dup2): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (fill_standard_fds): new function to open closed standardakr2011-10-302-0/+36
| | | | | | | | | file descriptors. (ruby_sysinit): call fill_standard_fds. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/rbinstall.rb (install_recursive, bin-comm): split merenobu2011-10-302-2/+7
| | | | | | string not path name. [ruby-core:40462] [Bug #5492] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_cloexec_dup, rb_cloexec_dup2): CLOEXEC has been set ifnobu2011-10-302-0/+11
| | | | | | dup3 succeeded. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_cloexec_dup): don't allocate standard file descriptors.akr2011-10-302-2/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_cloexec_dup2): don't set CLOEXEC for standard fileakr2011-10-292-1/+6
| | | | | | | descriptors. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-10-30svn2011-10-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: check dup3.akr2011-10-293-1/+23
| | | | | | | | * io.c (rb_cloexec_dup2): use dup3 if available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: style fix.ktsj2011-10-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_cloexec_dup2): declared.akr2011-10-293-4/+23
| | | | | | | | | * io.c (rb_cloexec_dup2): new function. (io_reopen): use rb_cloexec_dup2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (CONFIG_H): have stdint.h if VC2010. [Bug #5243]arton2011-10-292-19/+28
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_cloexec_dup): use F_DUPFD_CLOEXEC if available.akr2011-10-292-0/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a comment.akr2011-10-291-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_cloexec_dup): declared.akr2011-10-295-7/+28
| | | | | | | | | | | | | * io.c (rb_cloexec_dup): new function. (ruby_dup): use rb_cloexec_dup. * ext/pty/pty.c (pty_getpty): use rb_cloexec_dup. * ext/openssl/ossl_bio.c (ossl_obj2bio): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/_sdbm.c (sdbm_prep): use O_CLOEXEC if available.akr2011-10-292-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_cloexec_open): use O_CLOEXEC if available.akr2011-10-292-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (ruby_setsid): use rb_cloexec_open.akr2011-10-297-33/+50
| | | | | | | | | | | | | | | | | | | | (rb_daemon): ditto. * ruby.c (load_file_internal): ditto. * file.c (rb_file_s_truncate): ditto. (file_load_ok): ditto. * random.c (fill_random_seed): ditto. * ext/pty/pty.c (chfunc): ditto. (get_device_once): ditto. * ext/io/console/console.c (console_dev): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_cloexec_open): declared.akr2011-10-293-3/+33
| | | | | | | | | | | | * io.c (fd_set_cloexec): extracted from rb_fd_set_cloexec. (rb_cloexec_open): new function. (sysopen_func): use rb_cloexec_open. (rb_sysopen_internal): use rb_update_max_fd instead of rb_fd_set_cloexec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: commit miss.nobu2011-10-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-10-29svn2011-10-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.h: no Structured Exception Handling like macros.nobu2011-10-292-0/+10
| | | | | | [ruby-core:40432] [Bug #5491] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a comment.akr2011-10-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/_sdbm.c: RCS $Id$ removed.akr2011-10-282-8/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* A test for r33542.naruse2011-10-281-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_nextc): set encoding for the buffer of ripper.naruse2011-10-282-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/_sdbm.c (sdbm_prep): set FD_CLOEXEC flags for fileakr2011-10-272-0/+31
| | | | | | | | descriptors. (fd_set_cloexec): new function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_call_cfunc): adding back useless hack. For sometenderlove2011-10-272-0/+9
| | | | | | reason, this fixes CFP errors on OS X 10.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-10-28svn2011-10-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/_sdbm.c (sdbm_prep): refactored for less nesting.akr2011-10-272-17/+25
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_DEFINE_IF): revert r33534 partially to getnobu2011-10-272-2/+14
| | | | | | | rid of AS_ECHO which is not available in autoconf 2.61. [ruby-dev:44702] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_divide): raise ZeroDivisionError if divisor isnobu2011-10-273-1/+11
| | | | | | zero, as well as Fixnum. [ruby-core:40429] [Bug #5490] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_bignum.rb: ensure constants to be Bignum.nobu2011-10-271-12/+28
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_FUNC_ATTRIBUTE): unset temporary variable.nobu2011-10-272-14/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_STACK_GROW_DIRECTION): substitute CPU name asnobu2011-10-272-4/+12
| | | | | | | shell variable name. based on the patch by The Written Word Inc. at [ruby-core:40421]. [Bug #5488] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (SIZE_MAX): define SIZE_MAX if not defined.naruse2011-10-272-0/+21
| | | | | | patched by The Written Word Inc. [ruby-core:40422] [Bug #5489] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c: remove unused variable.emboss2011-10-262-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-10-27svn2011-10-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: add -Wall flag by default when compiler isemboss2011-10-262-4/+12
| | | | | | | GCC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e