summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorSamuel Williams <[email protected]>2024-10-04 20:44:23 +1300
committerGitHub <[email protected]>2024-10-04 07:44:23 +0000
commit6ea0dcc9781931129e77540097712f6196d49fde (patch)
treedbcabf21896c1a4dcd79351b226c4fb2697817be /process.c
parentc33cb9a5867b0d35335a7d6921184a60356a32d7 (diff)
Direct access to `fptr->fd` should prefer to use the `internal/io.h`. (#11793)
Notes
Notes: Merged-By: ioquatix <[email protected]>
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/process.c b/process.c
index ef4757ab23..fc52a7ee45 100644
--- a/process.c
+++ b/process.c
@@ -15,6 +15,8 @@
#include "ruby/fiber/scheduler.h"
+#include "internal/io.h"
+
#include <ctype.h>
#include <errno.h>
#include <signal.h>
@@ -1961,7 +1963,7 @@ check_exec_redirect_fd(VALUE v, int iskey)
goto wrong;
}
else if (!NIL_P(tmp = rb_io_check_io(v))) {
- rb_io_t *fptr;
+ struct rb_io *fptr;
GetOpenFile(tmp, fptr);
if (fptr->tied_io_for_writing)
rb_raise(rb_eArgError, "duplex IO redirection");