--- rxvt-unicode/src/command.C 2006/01/06 02:58:02 1.238 +++ rxvt-unicode/src/command.C 2006/01/06 03:02:22 1.239 @@ -4456,6 +4456,9 @@ 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));