Skip to content

Commit 55ed61f

Browse files
committed
Explicitly set mutate_flag
1 parent b7c2767 commit 55ed61f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/IronPython.Modules/termios.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public static object tcgetwinsize(CodeContext context, int fd) {
403403
var ws = new ushort[4];
404404
var buf = new MemoryBufferProtocolWrapper<ushort>(ws.AsMemory());
405405

406-
object result = PythonFcntl.ioctl(fd, TIOCGWINSZ, buf);
406+
object result = PythonFcntl.ioctl(fd, TIOCGWINSZ, buf, mutate_flag: true);
407407

408408
if (ToTermiosError(context, result) is not null and var ex) {
409409
return ex;
@@ -430,7 +430,7 @@ public static object tcgetwinsize(CodeContext context, int fd) {
430430
var ws = new ushort[4];
431431
var buf = new MemoryBufferProtocolWrapper<ushort>(ws.AsMemory());
432432

433-
object result = PythonFcntl.ioctl(fd, TIOCGWINSZ, buf);
433+
object result = PythonFcntl.ioctl(fd, TIOCGWINSZ, buf, mutate_flag: true);
434434
if (ToTermiosError(context, result) is not null and var ex) {
435435
return ex;
436436
}

0 commit comments

Comments
 (0)