diff options
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); |