1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: command.c |
2 | * File: command.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: command.C,v 1.12 2003/12/05 04:05:13 pcg Exp $ |
4 | * $Id: command.C,v 1.13 2003/12/05 04:27:20 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
… | |
… | |
772 | if (n > 0) |
772 | if (n > 0) |
773 | { |
773 | { |
774 | cmdbuf_endp += n; |
774 | cmdbuf_endp += n; |
775 | return true; |
775 | return true; |
776 | } |
776 | } |
777 | else if (n < 0 && errno == EAGAIN) |
777 | else if (n < 0 && errno != EAGAIN) |
|
|
778 | destroy (); |
|
|
779 | |
778 | return false; |
780 | return false; |
779 | |
|
|
780 | destroy (); |
|
|
781 | } |
781 | } |
782 | |
782 | |
783 | void |
783 | void |
784 | rxvt_term::pty_cb (io_watcher &w, short revents) |
784 | rxvt_term::pty_cb (io_watcher &w, short revents) |
785 | { |
785 | { |