summaryrefslogtreecommitdiffhomepage
path: root/cli-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli-main.c')
-rw-r--r--cli-main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli-main.c b/cli-main.c
index 34a1e42..def2c72 100644
--- a/cli-main.c
+++ b/cli-main.c
@@ -52,6 +52,10 @@ int main(int argc, char ** argv) {
TRACE(("user='%s' host='%s' port='%s'", cli_opts.username,
cli_opts.remotehost, cli_opts.remoteport));
+ if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) {
+ dropbear_exit("signal() error");
+ }
+
sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport,
0, &error);