From 15657f11e9ddf548b3d47f90d3c3fd2f4096aee6 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 14 Dec 1995 17:48:06 +0000 Subject: (pty_io_write): Always tell the user everything was written. --- term/ptyio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'term/ptyio.c') 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; } -- cgit v1.2.3