Mercurial > dropbear
comparison cli-main.c @ 109:2e9d1f29c50f
merge of 50be59810e462f9f44f55e421227d6aa0b31982b
and 69b007796063cb5f042be7cca2d479e90db869c3
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 27 Aug 2004 14:39:01 +0000 |
parents | 10f4d3319780 |
children | 0cfba3034be5 |
comparison
equal
deleted
inserted
replaced
108:10f4d3319780 | 109:2e9d1f29c50f |
---|---|
49 | 49 |
50 cli_getopts(argc, argv); | 50 cli_getopts(argc, argv); |
51 | 51 |
52 TRACE(("user='%s' host='%s' port='%s'", cli_opts.username, | 52 TRACE(("user='%s' host='%s' port='%s'", cli_opts.username, |
53 cli_opts.remotehost, cli_opts.remoteport)); | 53 cli_opts.remotehost, cli_opts.remoteport)); |
54 | |
55 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) { | |
56 dropbear_exit("signal() error"); | |
57 } | |
54 | 58 |
55 sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, | 59 sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, |
56 0, &error); | 60 0, &error); |
57 | 61 |
58 if (sock < 0) { | 62 if (sock < 0) { |