summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-12-14 17:48:06 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-12-14 17:48:06 +0000
commit15657f11e9ddf548b3d47f90d3c3fd2f4096aee6 (patch)
tree966dc92e49129c9a26ffb9b384aad747f2501721 /term
parentb53ca6e1306d1dceabd2f9e3b2faf8489e597606 (diff)
(pty_io_write): Always tell the user everything was written.
Diffstat (limited to 'term')
-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;
}