diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-27 14:39:01 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-27 14:39:01 +0000 |
commit | 18438749a1db0db4a1ce544cc1822497cc7886da (patch) | |
tree | 193af27642c02413e0d25619897554a664bb58f9 /cli-main.c | |
parent | 42a73d4e45f8ae729434a040a3fae921b74d248f (diff) | |
download | dropbear-18438749a1db0db4a1ce544cc1822497cc7886da.tar.gz |
merge of 50be59810e462f9f44f55e421227d6aa0b31982b
and 69b007796063cb5f042be7cca2d479e90db869c3
Diffstat (limited to 'cli-main.c')
-rw-r--r-- | cli-main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |