ruby/ext/openssl
akr b574a4d4a1 * include/ruby/intern.h (rb_fd_set_cloexec): declared.
* io.c (rb_fd_set_cloexec): new function.
  (ruby_dup): call rb_fd_set_cloexec to set close-on-exec flag.
  (rb_sysopen_internal): ditto.
  (rb_pipe): ditto.
  (io_reopen): ditto.
  (io_cntl): ditto.

* process.c (rb_f_exec): change the default :close_others option to
  true.
  (rb_f_system): ditto.
  (move_fds_to_avoid_crash): call rb_fd_set_cloexec to set
  close-on-exec flag.
  (ruby_setsid): ditto.
  (rb_daemon): ditto.

* thread_pthread.c (rb_thread_create_timer_thread): call
  rb_fd_set_cloexec to set close-on-exec flag.

* 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/openssl/ossl_bio.c (ossl_obj2bio): ditto.

* ext/socket/init.c (rsock_socket): ditto.
  (rsock_s_accept_nonblock): ditto.
  (rsock_s_accept): ditto.

* ext/socket/socket.c (rsock_sock_s_socketpair): ditto.

* ext/socket/ancdata.c (discard_cmsg): ditto.
  (make_io_for_unix_rights): ditto.

* ext/socket/unixsocket.c (unix_recv_io): ditto.

* ext/io/console/console.c (console_dev): ditto.

[ruby-core:38140] [Feature #5041]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-22 09:58:15 +00:00
..
lib * lib/openssl/buffering.rb: Force multi-byte strings to be treated as 2011-10-19 20:05:21 +00:00
extconf.rb * Release GVL while OpenSSL's public key generation. 2011-09-01 07:42:29 +00:00
openssl_missing.c * ext/openssl/extconf.rb 2011-06-26 01:32:03 +00:00
openssl_missing.h * ext/openssl/extconf.rb 2011-06-26 01:32:03 +00:00
ossl.c * ext/openssl/ossl.c (ossl_verify_cb): trap the exception from 2011-07-14 05:41:05 +00:00
ossl.h * ext/openssl/ossl.h: include openssl/e_os2.h before checking the 2011-07-08 06:03:17 +00:00
ossl_asn1.c * ext/openssl/ossl_asn1.c: fix int_ossl_asn1_decode0_cons when being 2011-09-25 14:51:20 +00:00
ossl_asn1.h
ossl_bio.c * include/ruby/intern.h (rb_fd_set_cloexec): declared. 2011-10-22 09:58:15 +00:00
ossl_bio.h
ossl_bn.c * ext/openssl/ossl.c: surpress warning: shorten-64-to-32. 2011-03-24 07:29:21 +00:00
ossl_bn.h
ossl_cipher.c * ext/openssl/ossl_cipher.c (ossl_cipher_initialize): Avoid possible 2011-07-28 13:48:05 +00:00
ossl_cipher.h
ossl_config.c
ossl_config.h
ossl_digest.c * ext/openssl/ossl_digest.c: Document OpenSSL::Digest::digest and add 2011-08-25 00:29:02 +00:00
ossl_digest.h
ossl_engine.c * ext/openssl/ossl_engine.c: Avoid double free of ENGINE reference. 2011-07-22 00:13:07 +00:00
ossl_engine.h
ossl_hmac.c * ext/openssl/ossl_hmac.c: Revert checking return type of 2011-07-22 04:11:38 +00:00
ossl_hmac.h
ossl_ns_spki.c * ext/openssl/ossl_ns_spki.c: Complete documentation. 2011-10-20 17:22:09 +00:00
ossl_ns_spki.h
ossl_ocsp.c * ext/openssl/ossl.c: surpress warning: shorten-64-to-32. 2011-03-24 07:29:21 +00:00
ossl_ocsp.h
ossl_pkcs5.c * ext/openssl/ossl_pkcs5.c: add note on timing attacks and general 2011-10-20 13:48:21 +00:00
ossl_pkcs5.h
ossl_pkcs7.c * sytle fixes. 2011-06-30 20:20:32 +00:00
ossl_pkcs7.h
ossl_pkcs12.c * ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER 2011-06-22 08:41:08 +00:00
ossl_pkcs12.h
ossl_pkey.c * ext/openssl/ossl_ssl.c: Remove set, but unused variables. 2011-10-19 01:15:35 +00:00
ossl_pkey.h * Release GVL while OpenSSL's public key generation. 2011-09-01 07:42:29 +00:00
ossl_pkey_dh.c * ext/openssl/ossl_ssl.c: Remove set, but unused variables. 2011-10-19 01:15:35 +00:00
ossl_pkey_dsa.c * ext/openssl/ossl_ssl.c: Remove set, but unused variables. 2011-10-19 01:15:35 +00:00
ossl_pkey_ec.c * ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER 2011-06-22 08:41:08 +00:00
ossl_pkey_rsa.c * ext/openssl/ossl_ssl.c: Remove set, but unused variables. 2011-10-19 01:15:35 +00:00
ossl_rand.c * ext/openssl/ossl.c: surpress warning: shorten-64-to-32. 2011-03-24 07:29:21 +00:00
ossl_rand.h
ossl_ssl.c * ext/openssl/ossl_ssl.c: Remove set, but unused variables. 2011-10-19 01:15:35 +00:00
ossl_ssl.h * ext/openssl/ossl_ssl.h: parenthesize macro arguments. 2011-03-10 13:28:58 +00:00
ossl_ssl_session.c * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_set_time): Check 2011-06-23 10:36:09 +00:00
ossl_version.h
ossl_x509.c
ossl_x509.h
ossl_x509attr.c * ext/openssl/ossl_x509attr.c: parenthesize macro arguments. 2011-03-13 09:11:45 +00:00
ossl_x509cert.c * ext/openssl/ossl_x509cert.c: fixed whitespace issues 2011-08-16 21:41:25 +00:00
ossl_x509crl.c * ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER 2011-06-22 08:41:08 +00:00
ossl_x509ext.c * ext/openssl/ossl.c: surpress warning: shorten-64-to-32. 2011-03-24 07:29:21 +00:00
ossl_x509name.c * ext/openssl/ossl_x509name.c: Add X509::Name#hash_old as a wrapper 2011-06-23 13:51:55 +00:00
ossl_x509req.c * ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER 2011-06-22 08:41:08 +00:00
ossl_x509revoked.c * ext/openssl/ossl_x509revoked.c: parenthesize macro arguments. 2011-03-19 03:30:59 +00:00
ossl_x509store.c * ext/openssl/ossl_rand.c (ossl_rand_egd_bytes): use NUM2INT because 2011-03-24 04:49:18 +00:00
ruby_missing.h * ext/openssl/ruby_missing.h: parenthesize macro arguments. 2011-03-22 11:09:43 +00:00