aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io.c b/io.c
index 7fb49906d3..f21f6c29d3 100644
--- a/io.c
+++ b/io.c
@@ -216,9 +216,8 @@ rb_maygvl_fd_fix_cloexec(int fd)
void
rb_fd_fix_cloexec(int fd)
{
- rb_atomic_t afd = (rb_atomic_t)fd;
rb_maygvl_fd_fix_cloexec(fd);
- if (max_file_descriptor < afd) max_file_descriptor = afd;
+ rb_update_max_fd(fd);
}
int