aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-pipe.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-10-05 23:13:56 +0000
committerJason Molenda <jmolenda@apple.com>1999-10-05 23:13:56 +0000
commit2acceee2182a942e6a79a972009540990f4dfabf (patch)
tree2ed7ca473f0b49181f1d0214c3450a7eb17f7bcb /gdb/ser-pipe.c
parent3e9c42873ee1d0bbb03039baea78c617174f9269 (diff)
downloadfsf-binutils-gdb-2acceee2182a942e6a79a972009540990f4dfabf.zip
fsf-binutils-gdb-2acceee2182a942e6a79a972009540990f4dfabf.tar.gz
fsf-binutils-gdb-2acceee2182a942e6a79a972009540990f4dfabf.tar.bz2
import gdb-1999-10-04 snapshot
Diffstat (limited to 'gdb/ser-pipe.c')
-rw-r--r--gdb/ser-pipe.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c
index efbc241..6a8a97e 100644
--- a/gdb/ser-pipe.c
+++ b/gdb/ser-pipe.c
@@ -49,7 +49,7 @@ struct pipe_state
static int
pipe_open (serial_t scb, const char *name)
{
-#if !defined(O_NONBLOCK) || !defined(F_GETFL) || !defined(F_SETFL) || !HAVE_SOCKETPAIR
+#if !HAVE_SOCKETPAIR
return -1;
#else
struct pipe_state *state;
@@ -106,17 +106,6 @@ pipe_open (serial_t scb, const char *name)
scb->fd = pdes[0];
scb->state = state;
- /* Make it non-blocking */
- {
- int flags = fcntl (scb->fd, F_GETFL, 0);
- if (fcntl (scb->fd, F_SETFL, flags | O_NONBLOCK) < 0)
- {
- perror ("ser-pipe");
- pipe_close (scb);
- return -1;
- }
- }
-
/* If we don't do this, GDB simply exits when the remote side dies. */
signal (SIGPIPE, SIG_IGN);
return 0;
@@ -153,7 +142,7 @@ _initialize_ser_pipe (void)
ops->readchar = ser_unix_readchar;
ops->write = ser_unix_write;
ops->flush_output = ser_unix_nop_flush_output;
- ops->flush_input = ser_unix_nop_flush_input;
+ ops->flush_input = ser_unix_flush_input;
ops->send_break = ser_unix_nop_send_break;
ops->go_raw = ser_unix_nop_raw;
ops->get_tty_state = ser_unix_nop_get_tty_state;