We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fac939 commit ade3680Copy full SHA for ade3680
1 file changed
unix/file.c
@@ -105,6 +105,7 @@ STATIC mp_uint_t fdfile_write(mp_obj_t o_in, const void *buf, mp_uint_t size, in
105
106
STATIC mp_uint_t fdfile_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, int *errcode) {
107
mp_obj_fdfile_t *o = MP_OBJ_TO_PTR(o_in);
108
+ check_fd_is_open(o_in);
109
switch (request) {
110
case MP_STREAM_SEEK: {
111
struct mp_stream_seek_t *s = (struct mp_stream_seek_t*)arg;
0 commit comments