Don't perform input processing when writing to the slave end (output written to

terminal was interpreted like input). Fixes #2409.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31417 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-07-06 11:39:49 +00:00
parent d1f87b6519
commit ce3bb4fb88
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2008, Ingo Weinhold, [email protected].de.
* Copyright 2007-2009, Ingo Weinhold, ingo_weinhold@gmx.de.
* Copyright 2004-2006, Axel Dörfler, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*/
@@ -1808,7 +1808,7 @@ tty_write_to_tty_slave_unsafe(tty_cookie *sourceCookie, const char *data,
// write the bytes
for (size_t i = 0; i < bytesNeeded; i++)
tty_input_putc_locked(target, buffer[i]);
line_buffer_putc(target->input_buffer, buffer[i]);
writable -= bytesNeeded;
data++;