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