*** empty log message ***
authorpcg <pcg>
Fri, 5 Dec 2003 04:27:20 +0000 (04:27 +0000)
committerpcg <pcg>
Fri, 5 Dec 2003 04:27:20 +0000 (04:27 +0000)
src/command.C

index d73d8e8f6945442ac62d9220d3f64c2a8293c743..7f1470ba44bee0be97a61424db2cb31256cd4860 100644 (file)
@@ -1,7 +1,7 @@
 /*--------------------------------*-C-*---------------------------------*
  * File:       command.c
  *----------------------------------------------------------------------*
- * $Id: command.C,v 1.12 2003-12-05 04:05:13 pcg Exp $
+ * $Id: command.C,v 1.13 2003-12-05 04:27:20 pcg Exp $
  *
  * All portions of code are copyright by their respective author/s.
  * Copyright (c) 1992      John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk>
@@ -774,10 +774,10 @@ rxvt_term::pty_fill ()
       cmdbuf_endp += n;
       return true;
     }
-  else if (n < 0 && errno == EAGAIN)
-    return false;
+  else if (n < 0 && errno != EAGAIN)
+    destroy ();
 
-  destroy ();
+  return false;
 }
 
 void