repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 9b3656183421237d624c24582f6a935d4f40e438: path_to: revision_to:
commit 9b3656183421237d624c24582f6a935d4f40e438 Author: Marc LehmannDate: Fri Jan 6 03:02:22 2006 +0000 *** empty log message *** diff --git a/src/command.C b/src/command.C
--- a/src/command.C
+++ b/src/command.C
@@ -4456,6 +4456,9 @@ const unsigned int MAX_PTY_WRITE = 255; // minimum MAX_INPUT
void
rxvt_term::tt_write (const char *data, unsigned int len)
{
+ if (pty.pty < 0)
+ return;
+
if (v_buflen == 0)
{
ssize_t written = write (pty.pty, data, min (len, MAX_PTY_WRITE));
-----END OF PAGE-----