comparison dbutil.c @ 883:ff597bf2cfb0

DROPBEAR_CLI_AUTH_IMMEDIATE fixed, now enabled by default
author Matt Johnston <matt@ucc.asn.au>
date Fri, 17 Jan 2014 21:39:27 +0800
parents aa689d140928
children 7cd89d4e0335
comparison
equal deleted inserted replaced
882:f05107560aa9 883:ff597bf2cfb0
810 #endif 810 #endif
811 811
812 /* make sure that the socket closes */ 812 /* make sure that the socket closes */
813 void m_close(int fd) { 813 void m_close(int fd) {
814 814
815 if (fd == -1) {
816 return;
817 }
818
815 int val; 819 int val;
816 do { 820 do {
817 val = close(fd); 821 val = close(fd);
818 } while (val < 0 && errno == EINTR); 822 } while (val < 0 && errno == EINTR);
819 823