|
Lines 1365-1370
Link Here
|
| 1365 |
if (options.forward_agent) |
1365 |
if (options.forward_agent) |
| 1366 |
flags |= SSHMUX_FLAG_AGENT_FWD; |
1366 |
flags |= SSHMUX_FLAG_AGENT_FWD; |
|
|
1367 |
signal(SIGPIPE, SIG_IGN); |
| 1367 |
buffer_init(&m); |
1368 |
buffer_init(&m); |
| 1368 |
/* Send our command to server */ |
1369 |
/* Send our command to server */ |
|
Lines 1426-1434
Link Here
|
| 1426 |
if (ssh_msg_send(sock, SSHMUX_VER, &m) == -1) |
1427 |
if (ssh_msg_send(sock, SSHMUX_VER, &m) == -1) |
| 1427 |
fatal("%s: msg_send", __func__); |
1428 |
fatal("%s: msg_send", __func__); |
| 1428 |
mm_send_fd(sock, STDIN_FILENO); |
1429 |
if ( mm_send_fd(sock, STDIN_FILENO) == -1 ) |
| 1429 |
mm_send_fd(sock, STDOUT_FILENO); |
1430 |
fatal("%s: failed to send stdin", __func__); |
| 1430 |
mm_send_fd(sock, STDERR_FILENO); |
1431 |
else if ( mm_send_fd(sock, STDOUT_FILENO) == -1 ) |
|
|
1432 |
fatal("%s: failed to send stdout", __func__); |
| 1433 |
else if ( mm_send_fd(sock, STDERR_FILENO) == -1 ) |
| 1434 |
fatal("%s: failed to send stderr", __func__); |
| 1431 |
/* Wait for reply, so master has a chance to gather ttymodes */ |
1435 |
/* Wait for reply, so master has a chance to gather ttymodes */ |
| 1432 |
buffer_clear(&m); |
1436 |
buffer_clear(&m); |