mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (io_cntl): F_DUPFD is platform dependent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b6c007ac85
commit
d64d462f7a
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Oct 25 13:33:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (io_cntl): F_DUPFD is platform dependent.
|
||||
|
||||
Sun Oct 25 10:19:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/dl/handle.c (rb_dlhandle_close): fixed an invalid local
|
||||
|
|
2
io.c
2
io.c
|
@ -7237,9 +7237,11 @@ io_cntl(int fd, unsigned long cmd, long narg, int io_p)
|
|||
# else
|
||||
retval = io_p?ioctl(fd, cmd, narg):fcntl(fd, (int)cmd, narg);
|
||||
# endif
|
||||
# if defined(F_DUPFD)
|
||||
if (!io_p && retval != -1 && cmd == F_DUPFD) {
|
||||
UPDATE_MAXFD(retval);
|
||||
}
|
||||
# endif
|
||||
#else
|
||||
if (!io_p) {
|
||||
rb_notimplement();
|
||||
|
|
Loading…
Reference in a new issue