diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-03-16 17:05:31 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2005-03-16 17:05:31 +0000 |
commit | 6d318c73e1caf19fd153a788590dd64402028167 (patch) | |
tree | a99e50e40edb13cb8456896650a1f64a50550d63 /gdb/ser-tcp.c | |
parent | 1ad12f975f8a2a0ce45569ea3f550ef25705ad37 (diff) | |
download | gdb-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.c | 2 |
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; } |