From 18438749a1db0db4a1ce544cc1822497cc7886da Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 27 Aug 2004 14:39:01 +0000 Subject: merge of 50be59810e462f9f44f55e421227d6aa0b31982b and 69b007796063cb5f042be7cca2d479e90db869c3 --- cli-main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli-main.c') 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); -- cgit v1.2.1