From 5695c588c0c49967c7dc4787b79044c8331a0e98 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 8 Jan 2006 04:14:11 +0000 Subject: [PATCH] the bug was FreeBSD specific. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 +++--- eval.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 023ac4c54d..26740f8a64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,9 +6,9 @@ Sat Jan 7 15:40:07 2006 Nobuyoshi Nakada Sat Jan 7 06:24:18 2006 Tanaka Akira * eval.c (rb_fd_isset): compare the result of FD_ISSET with 0 to - avoid BSD bug. BSD defines FD_ISSET as just a bitmap of unsigned - long. So returning the value from rb_fd_isset discards upper - 32bits on LP64 environment. + avoid FreeBSD bug. FreeBSD defines FD_ISSET as just a bitmap of + unsigned long. So returning the value from rb_fd_isset discards + upper 32bits on LP64 environment. http://www.freebsd.org/cgi/query-pr.cgi?pr=ia64/91421 Fri Jan 6 02:20:18 2006 Tanaka Akira diff --git a/eval.c b/eval.c index 4705e06d25..9fb3f7330e 100644 --- a/eval.c +++ b/eval.c @@ -9644,7 +9644,7 @@ rb_fd_isset(n, fds) const rb_fdset_t *fds; { if (n >= fds->maxfd) return 0; - return FD_ISSET(n, fds->fdset) != 0; /* "!= 0" avoids BSD bug */ + return FD_ISSET(n, fds->fdset) != 0; /* "!= 0" avoids FreeBSD bug */ } void