diff options
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 20091919dd1..c2e4044cc92 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; } |