summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--term/ptyio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/term/ptyio.c b/term/ptyio.c
index 29e9052f..22a0531e 100644
--- a/term/ptyio.c
+++ b/term/ptyio.c
@@ -364,6 +364,7 @@ pty_io_write (struct trivfs_protid *cred,
for (i = 0; i < datalen; i++)
{
flush = input_character (data[i]);
+
if (flush)
{
if (packet_mode)
@@ -374,7 +375,10 @@ pty_io_write (struct trivfs_protid *cred,
break;
}
}
+
mutex_unlock (&global_lock);
+
+ *amount = datalen;
return 0;
}