repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 9b3656183421237d624c24582f6a935d4f40e438:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 9b3656183421237d624c24582f6a935d4f40e438
Author: Marc Lehmann 
Date:   Fri Jan 6 03:02:22 2006 +0000

    *** empty log message ***

diff --git a/src/command.C b/src/command.C
index d7b8635710f13cd93ef03c625217d860034f67b3..
index ..60a8dba22773c6c4e9ac1b15fb9564f857aa3a9c 100644
--- 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-----