--- rxvt-unicode/src/command.C 2005/12/22 21:56:19 1.214 +++ rxvt-unicode/src/command.C 2005/12/23 14:46:34 1.215 @@ -1069,8 +1069,13 @@ cmdbuf_endp += n; return true; } - else if (n < 0 && errno != EAGAIN && errno != EINTR) - pty_ev.stop (); + else if ((n < 0 && errno != EAGAIN && errno != EINTR) || n == 0) + { + pty_ev.stop (); + + if (!(options & Opt_hold)) + destroy (); + } return false; }