comparison packet.c @ 932:3873b39c4de6

Print errno information in write_packet
author Ronny Meeus <ronny.meeus@gmail.com>
date Tue, 20 May 2014 20:56:59 +0800
parents 7cd89d4e0335
children c919dbb39395
comparison
equal deleted inserted replaced
931:ac340d3e452e 932:3873b39c4de6
88 if (errno == EINTR) { 88 if (errno == EINTR) {
89 m_free(iov); 89 m_free(iov);
90 TRACE2(("leave write_packet: EINTR")) 90 TRACE2(("leave write_packet: EINTR"))
91 return; 91 return;
92 } else { 92 } else {
93 dropbear_exit("Error writing"); 93 dropbear_exit("Error writing: %s", strerror(errno));
94 } 94 }
95 } 95 }
96 96
97 if (written == 0) { 97 if (written == 0) {
98 ses.remoteclosed(); 98 ses.remoteclosed();
129 if (written < 0) { 129 if (written < 0) {
130 if (errno == EINTR) { 130 if (errno == EINTR) {
131 TRACE2(("leave writepacket: EINTR")) 131 TRACE2(("leave writepacket: EINTR"))
132 return; 132 return;
133 } else { 133 } else {
134 dropbear_exit("Error writing"); 134 dropbear_exit("Error writing: %s", strerror(errno));
135 } 135 }
136 } 136 }
137 all_ignore = (packet_type == SSH_MSG_IGNORE); 137 all_ignore = (packet_type == SSH_MSG_IGNORE);
138 138
139 if (written == 0) { 139 if (written == 0) {