aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-tcp.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-16 17:05:31 +0000
committerMark Mitchell <mark@codesourcery.com>2005-03-16 17:05:31 +0000
commit6d318c73e1caf19fd153a788590dd64402028167 (patch)
treea99e50e40edb13cb8456896650a1f64a50550d63 /gdb/ser-tcp.c
parent1ad12f975f8a2a0ce45569ea3f550ef25705ad37 (diff)
downloadgdb-6d318c73e1caf19fd153a788590dd64402028167.zip
gdb-6d318c73e1caf19fd153a788590dd64402028167.tar.gz
gdb-6d318c73e1caf19fd153a788590dd64402028167.tar.bz2
* event-top.c (async_init_signals): Allow for systems that do not
define SIGQUIT. * ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r--gdb/ser-tcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index 2009191..c2e4044 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -186,9 +186,11 @@ net_open (struct serial *scb, const char *name)
(char *)&tmp, sizeof (tmp));
}
+#ifdef SIGPIPE
/* If we don't do this, then GDB simply exits
when the remote side dies. */
signal (SIGPIPE, SIG_IGN);
+#endif
return 0;
}