mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
IO.pipe
should be non-blocking by default, even on Windows.
This commit is contained in:
parent
2230ac4a28
commit
ebfef19101
1 changed files with 0 additions and 2 deletions
2
io.c
2
io.c
|
@ -427,10 +427,8 @@ rb_cloexec_pipe(int descriptors[2])
|
||||||
rb_maygvl_fd_fix_cloexec(descriptors[0]);
|
rb_maygvl_fd_fix_cloexec(descriptors[0]);
|
||||||
rb_maygvl_fd_fix_cloexec(descriptors[1]);
|
rb_maygvl_fd_fix_cloexec(descriptors[1]);
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
rb_fd_set_nonblock(descriptors[0]);
|
rb_fd_set_nonblock(descriptors[0]);
|
||||||
rb_fd_set_nonblock(descriptors[1]);
|
rb_fd_set_nonblock(descriptors[1]);
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue