1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
usa fd9f6bde95 * win32/win32.c, include/win32/win32.h (rb_w32_set_nonblock): new
function to support nonblock-mode of pipes.

* win32/win32.c (rb_w32_read): nonblock-mode pipe returns ERROR_NO_DATA
  if there is no data, but also returns it if remote-end is closed.

* win32/win32.c (rb_w32_write): if cannot to write any data, it may be
  blocking.

* io.c (rb_io_set_nonblock): use rb_w32_set_nonblock for Windows.

* ext/io/nonblock/nonblock.c (rb_io_nonblock_set): use ruby's API when
  setting nonblock-mode.

* test/ruby/test_io.rb: test nonblock pipes on Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-10 10:42:19 +00:00
..
-test- test_bmethod.rb: block in bmethod test 2014-11-09 14:58:33 +00:00
bigdecimal
continuation
coverage
date
dbm
digest
etc win32.c: login name encoding 2014-11-10 08:24:36 +00:00
fcntl
fiber
fiddle
gdbm
io * win32/win32.c, include/win32/win32.h (rb_w32_set_nonblock): new 2014-11-10 10:42:19 +00:00
json
mathn
nkf
objspace
openssl
pathname
psych
pty
racc/cparse
rbconfig/sizeof
readline
ripper
sdbm
socket
stringio
strscan
syslog
thread thread.c: no function callsin RARRAY_LEN 2014-11-07 16:36:16 +00:00
tk
win32 win32/registry.rb: slice in WCHARs 2014-11-09 03:09:40 +00:00
win32ole
zlib
.document
extmk.rb
Setup
Setup.atheos
Setup.emx
Setup.nacl
Setup.nt